|
| 1 | +# defaults for jenkins continuous integration server |
| 2 | + |
| 3 | +# pulled in from the init script; makes things easier. |
| 4 | +NAME=jenkins |
| 5 | + |
| 6 | +# location of java |
| 7 | +JAVA=/usr/bin/java |
| 8 | + |
| 9 | +# arguments to pass to java |
| 10 | +JAVA_ARGS="-Djava.awt.headless=true" # Allow graphs etc. to work even when an X server is present |
| 11 | +#JAVA_ARGS="-Xmx256m" |
| 12 | +#JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 address |
| 13 | + |
| 14 | +PIDFILE=/var/run/$NAME/$NAME.pid |
| 15 | + |
| 16 | +# user and group to be invoked as (default to jenkins) |
| 17 | +JENKINS_USER=$NAME |
| 18 | +JENKINS_GROUP=$NAME |
| 19 | + |
| 20 | +# location of the jenkins war file |
| 21 | +JENKINS_WAR=/usr/share/$NAME/$NAME.war |
| 22 | + |
| 23 | +# jenkins home location |
| 24 | +JENKINS_HOME=/var/lib/$NAME |
| 25 | + |
| 26 | +# set this to false if you don't want Hudson to run by itself |
| 27 | +# in this set up, you are expected to provide a servlet container |
| 28 | +# to host jenkins. |
| 29 | +RUN_STANDALONE=true |
| 30 | + |
| 31 | +# log location. this may be a syslog facility.priority |
| 32 | +JENKINS_LOG=/var/log/$NAME/$NAME.log |
| 33 | +#JENKINS_LOG=daemon.info |
| 34 | + |
| 35 | +# OS LIMITS SETUP |
| 36 | +# comment this out to observe /etc/security/limits.conf |
| 37 | +# this is on by default because http://github.com/jenkinsci/jenkins/commit/2fb288474e980d0e7ff9c4a3b768874835a3e92e |
| 38 | +# reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file |
| 39 | +# descriptors are forced to 1024 regardless of /etc/security/limits.conf |
| 40 | +MAXOPENFILES=8192 |
| 41 | + |
| 42 | +# set the umask to control permission bits of files that Jenkins creates. |
| 43 | +# 027 makes files read-only for group and inaccessible for others, which some security sensitive users |
| 44 | +# might consider benefitial, especially if Jenkins runs in a box that's used for multiple purposes. |
| 45 | +# Beware that 027 permission would interfere with sudo scripts that run on the master (JENKINS-25065.) |
| 46 | +# |
| 47 | +# Note also that the particularly sensitive part of $JENKINS_HOME (such as credentials) are always |
| 48 | +# written without 'others' access. So the umask values only affect job configuration, build records, |
| 49 | +# that sort of things. |
| 50 | +# |
| 51 | +# If commented out, the value from the OS is inherited, which is normally 022 (as of Ubuntu 12.04, |
| 52 | +# by default umask comes from pam_umask(8) and /etc/login.defs |
| 53 | + |
| 54 | +# UMASK=027 |
| 55 | + |
| 56 | +# port for HTTP connector (default 8080; disable with -1) |
| 57 | +HTTP_PORT=8080 |
| 58 | + |
| 59 | +# port for AJP connector (disabled by default) |
| 60 | +AJP_PORT=-1 |
| 61 | + |
| 62 | +# servlet context, important if you want to use apache proxying |
| 63 | +PREFIX=/$NAME |
| 64 | + |
| 65 | +# arguments to pass to jenkins. |
| 66 | +# --javahome=$JAVA_HOME |
| 67 | +# --httpPort=$HTTP_PORT (default 8080; disable with -1) |
| 68 | +# --httpsPort=$HTTP_PORT |
| 69 | +# --ajp13Port=$AJP_PORT |
| 70 | +# --argumentsRealm.passwd.$ADMIN_USER=[password] |
| 71 | +# --argumentsRealm.roles.$ADMIN_USER=admin |
| 72 | +# --webroot=~/.jenkins/war |
| 73 | +# --prefix=$PREFIX |
| 74 | + |
| 75 | +HTTPS_PORT=8443 |
| 76 | +HTTPS_CERTIFICATE=/opt/jenkins_api_client/travis/ssl/server.cert.pem |
| 77 | +HTTPS_PRIVATE_KEY=/opt/jenkins_api_client/travis/ssl/server.key.pem |
| 78 | + |
| 79 | +JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT --httpsPort=$HTTPS_PORT --ajp13Port=$AJP_PORT --httpsCertificate=$HTTPS_CERTIFICATE --httpsPrivateKey=$HTTPS_PRIVATE_KEY" |
0 commit comments