Skip to content
Browse files
Merge pull request #1061 from OnBeep/feature/ampledata-mac_os_x_tmp
[JENKINS-17526] Relocating Jetty/Java tmpdir for Mac OS X.
  • Loading branch information
olamy committed Jan 16, 2014
2 parents f748eeb + c8fb9d7 commit c932cd9363357fc83e993b1da2d565ed2893aee1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
@@ -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${tmpdir}"

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

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

# Set tmpdir
defaults write $DEFAULTS_PLIST tmpdir $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 c932cd9

Please sign in to comment.