[Qa-jenkins-scm] [jenkins.debian.net] 01/01: define JENKINS_HOME before using it

Mattia Rizzolo mattia at debian.org
Thu Dec 14 12:17:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository jenkins.debian.net.

commit df15e48c623ba61ab3fbdb0d4d6cea63ed4bb475
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Thu Dec 14 13:15:42 2017 +0100

    define JENKINS_HOME before using it
    
    all those "log gc" options never really worked because JENKINS_HOME was
    not defined and so leaded only to messages like
        OpenJDK 64-Bit Server VM warning: Cannot open file /gc-2017-12-11_17-04-12.log due to Permission denied
    during startup.
    
    While on it also move them into a subdirectory.
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 hosts/jenkins/etc/default/jenkins | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hosts/jenkins/etc/default/jenkins b/hosts/jenkins/etc/default/jenkins
index f6aae7c..ca765b9 100644
--- a/hosts/jenkins/etc/default/jenkins
+++ b/hosts/jenkins/etc/default/jenkins
@@ -6,11 +6,14 @@ NAME=jenkins
 # location of java
 JAVA=/usr/bin/java
 
+# jenkins home location
+JENKINS_HOME=/var/lib/$NAME
+
 # arguments to pass to java
 #JAVA_ARGS="-Djava.awt.headless=true"  # Allow graphs etc. to work even when an X server is present
 #JAVA_ARGS="-Xmx256m"
 #JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 address
-JAVA_ARGS="-Djava.awt.headless=true -Xms4G -Xmx8G -server -XX:+AlwaysPreTouch -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/jenkins/heapDumps/ -Xloggc:$JENKINS_HOME/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+Parall [...]
+JAVA_ARGS="-Djava.awt.headless=true -Xms4G -Xmx8G -server -XX:+AlwaysPreTouch -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$JENKINS_HOME/heapDumps/ -Xloggc:$JENKINS_HOME/javaGC/gc-%t.log -XX:NumberOfGCLogFiles=5 -XX:+UseGCLogFileRotation -XX:GCLogFileSize=20m -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintGCCause -XX:+PrintTenuringDistribution -XX:+PrintReferenceGC -XX:+PrintAdaptiveSizePolicy -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:+Pa [...]
 
 PIDFILE=/var/run/$NAME/$NAME.pid
 
@@ -21,9 +24,6 @@ JENKINS_GROUP=$NAME
 # location of the jenkins war file
 JENKINS_WAR=/usr/share/$NAME/$NAME.war
 
-# jenkins home location
-JENKINS_HOME=/var/lib/$NAME
-
 # set this to false if you don't want Hudson to run by itself
 # in this set up, you are expected to provide a servlet container
 # to host jenkins.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list