Skip to content
Permalink
Browse files

[JENKINS-17526] Relocating Jetty/Java tmpdir for Mac OS X.

Originally-From: jenkins-ci.org/commit/core/95842fd6b6fe493da6bbb12faa0ec2c5c314f473
  • Loading branch information...
Greg Albrecht
Greg Albrecht committed Dec 11, 2013
1 parent b556355 commit c8fb9d70124277b3d64e19a384171fcd396792e3
Showing with 8 additions and 0 deletions.
  1. +2 −0 Library/Application Support/Jenkins/jenkins-runner.sh
  2. +6 −0 scripts/postinstall-launchd-jenkins
@@ -22,6 +22,8 @@ permGen=`$defaults permGen` && javaArgs="$javaArgs -XX:MaxPermSize=${permGen}"
minHeapSize=`$defaults minHeapSize` && javaArgs="$javaArgs -Xms${minHeapSize}"
heapSize=`$defaults heapSize` && javaArgs="$javaArgs -Xmx${heapSize}"

tmpdir=`$defaults tmpdir` && javaArgs="$javaArgs -Djava.io.tmpdir=${tmpdir}"

home=`$defaults JENKINS_HOME` && export JENKINS_HOME="$home"

add_to_args() {
@@ -61,6 +61,12 @@ else
defaults write $DEFAULTS_PLIST minPermGen 64m
fi

# Set tmpdir
JENKINS_TMPDIR="$JENKINS_HOMEDIR/tmp"
defaults write $DEFAULTS_PLIST tmpdir $JENKINS_TMPDIR
mkdir -p $JENKINS_TMPDIR
chown jenkins:jenkins $JENKINS_TMPDIR

# Create log directory, which can be written by Jenkins daemon
mkdir -p /var/log/jenkins
chown jenkins:jenkins /var/log/jenkins

0 comments on commit c8fb9d7

Please sign in to comment.
You can’t perform that action at this time.