Skip to content

Commit

Permalink
Merge pull request #31 from cagiti/updated-tmp-dir
Browse files Browse the repository at this point in the history
Updated how the tmp directory is configured
  • Loading branch information
tebuta authored May 29, 2018
2 parents 1ef7e25 + 4ac8f11 commit 47d2b8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions jobs/jenkins-master/templates/bin/pre-start.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables

mkdir -p /var/vcap/tmp
chgrp vcap /var/vcap/tmp
chmod g+w /var/vcap/tmp

mkdir -p /var/vcap/store/jenkins-master
mkdir -p /var/vcap/store/jenkins-master/init.groovy.d
mkdir -p /var/vcap/store/jenkins-master/plugins
Expand Down
2 changes: 1 addition & 1 deletion jobs/jenkins-master/templates/data/properties.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export JENKINS=/var/vcap/packages/jenkins/jenkins/jenkins_${JENKINS_VERSION}.war
export MEMORY_SETTINGS=""

export JENKINS_HOME=/var/vcap/store/jenkins-master
export JENKINS_ARGS="--sessionTimeout=1440 -Djava.io.tmpdir=$JENKINS_HOME/tmp"
export JENKINS_ARGS="--sessionTimeout=1440"
4 changes: 2 additions & 2 deletions jobs/jenkins-master/templates/helpers/ctl_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ then
export JAVA_HOME="/var/vcap/packages/java7"
fi

export JENKINS_TMP_PATH="/var/vcap/tmp"
export JAVA_OPTS="-Djava.io.tmpdir=$JENKINS_TMP_PATH"
export JENKINS_TMP_PATH="${TMP_DIR}"
export JAVA_OPTS="${JAVA_OPTS} -Djava.io.tmpdir=${JENKINS_TMP_PATH}"

# setup CLASSPATH for all jars/ folders within packages
export CLASSPATH=${CLASSPATH:-''} # default to empty
Expand Down
4 changes: 2 additions & 2 deletions jobs/jenkins-slave/templates/helpers/ctl_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ then
export JAVA_HOME="/var/vcap/packages/java7"
fi

export JENKINS_TMP_PATH="$HOME/tmp"
export JAVA_OPTS="-Djava.io.tmpdir=$JENKINS_TMP_PATH"
export JENKINS_TMP_PATH="${TMP_DIR}"
export JAVA_OPTS="${JAVA_OPTS} -Djava.io.tmpdir=$JENKINS_TMP_PATH"

# setup CLASSPATH for all jars/ folders within packages
export CLASSPATH=${CLASSPATH:-''} # default to empty
Expand Down

0 comments on commit 47d2b8c

Please sign in to comment.