From 549161d9126173c4fce90ff7c216f7b72d784294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Gr=C3=BCnewaldt?= Date: Mon, 31 Jul 2017 17:18:07 +0200 Subject: [PATCH] Update docker-entrypoint.sh --- docker-entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7a90ad7..f0bae94 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -56,8 +56,13 @@ echo "DOCKER-ENTRYPOINT >> config: JENKINS_URL: $JENKINS_URL" echo "DOCKER-ENTRYPOINT >> config: JENKINS_JNLP_URL: $JENKINS_JNLP_URL" 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 +echo "DOCKER-ENTRYPOINT >> checking integrity of slave.jar" +jar -tvf /home/jenkins/.bin/jenkins-slave.jar echo "DOCKER-ENTRYPOINT >> establishing JNLP connection with Jenkins" exec java $JAVA_OPTS -cp /home/jenkins/.bin/jenkins-slave.jar \