Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Update docker-entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Grünewaldt authored Jul 31, 2017
1 parent 549161d commit 087822d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ echo "DOCKER-ENTRYPOINT >> downloading jenkins-slave.jar from Jenkins"
echo "DOCKER-ENTRYPOINT >> ${JENKINS_URL}/jnlpJars/slave.jar"
curl -I ${JENKINS_URL}/jnlpJars/slave.jar

curl -sSLo /home/jenkins/.bin/jenkins-slave.jar ${JENKINS_URL}/jnlpJars/slave.jar
curl -sSLo /tmp/jenkins-slave.jar ${JENKINS_URL}/jnlpJars/slave.jar

echo "DOCKER-ENTRYPOINT >> checking integrity of slave.jar"
jar -tvf /home/jenkins/.bin/jenkins-slave.jar
jar -tvf /tmp/jenkins-slave.jar

echo "DOCKER-ENTRYPOINT >> establishing JNLP connection with Jenkins"
exec java $JAVA_OPTS -cp /home/jenkins/.bin/jenkins-slave.jar \
exec java $JAVA_OPTS -cp /tmp/jenkins-slave.jar \
hudson.remoting.jnlp.Main -headless \
$JENKINS_JNLP_URL $JENKINS_SECRET $JENKINS_NAME

0 comments on commit 087822d

Please sign in to comment.