From 37dfed70b4239ab4d59430b7b1a365c08e83f539 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 8 Nov 2013 11:30:50 +0100 Subject: Fix Jenkin's $JENKINS_HOME/war/ content, since $JENKINS_HOME/war/WEB-INF/slave.jar is being used by slaves (scp fetching) Once we started Jenkins w/ a method where the jenkins.war file got inflated into $JENKINS_HOME/war/, but since after 'Apr 9 2013' this is no more the case - last timestamp. Update the folder manually at startup! --- jenkins-server-slave-setup/scripts/start.jenkins.sh | 7 +++++++ .../scripts/update.jenkins.war_folder.sh | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100755 jenkins-server-slave-setup/scripts/update.jenkins.war_folder.sh (limited to 'jenkins-server-slave-setup/scripts') diff --git a/jenkins-server-slave-setup/scripts/start.jenkins.sh b/jenkins-server-slave-setup/scripts/start.jenkins.sh index cacc638..390775a 100755 --- a/jenkins-server-slave-setup/scripts/start.jenkins.sh +++ b/jenkins-server-slave-setup/scripts/start.jenkins.sh @@ -7,6 +7,13 @@ export JENKINS_LOG=$JENKINS_HOME/jenkins.log export JAVA_HOME=/opt-linux-x86_64/jre7 JAVA=$JAVA_HOME/bin/java +cd $JENKINS_HOME +rm -rf war +mkdir -p war +cd war +unzip $JENKINS_WAR +cd $JENKINS_HOME + nohup nice $JAVA -server -Xmx1024m -jar $JENKINS_WAR --httpPort=8080 --prefix=/chuck > $JENKINS_LOG 2>&1 & # nohup nice $JAVA -server -Xmx1024m -jar $JENKINS_WAR --httpPort=-1 --httpsPort=8080 --prefix=/chuck > $JENKINS_LOG 2>&1 & diff --git a/jenkins-server-slave-setup/scripts/update.jenkins.war_folder.sh b/jenkins-server-slave-setup/scripts/update.jenkins.war_folder.sh new file mode 100755 index 0000000..ec7efbd --- /dev/null +++ b/jenkins-server-slave-setup/scripts/update.jenkins.war_folder.sh @@ -0,0 +1,11 @@ +#!/bin/bash +export JENKINS_HOME=/srv/jenkins +export JENKINS_WAR=$JENKINS_HOME/jenkins.war + +cd $JENKINS_HOME +rm -rf war +mkdir -p war +cd war +unzip $JENKINS_WAR +cd $JENKINS_HOME + -- cgit v1.2.3