From af3c3ad022ba3379e09e6038bc99da48a306a135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Gr=C3=BCnewaldt?= Date: Mon, 31 Jul 2017 20:20:49 +0200 Subject: [PATCH] Update docker-entrypoint.sh --- docker-entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 22f6a3d..3bf5fa2 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -71,10 +71,10 @@ curl -sSLo /tmp/jenkins-slave.jar https://repo.jenkins-ci.org/releases/org/jenk ###jar -tvf /tmp/jenkins-slave.jar echo "DOCKER-ENTRYPOINT >> establishing JNLP connection with Jenkins via JNLP URL" -echo "DOCKER-ENTRYPOINT >> java -jar /tmp/jenkins-slave.jar -jnlpUrl $JENKINS_JNLP_URL" -#exec java $JAVA_OPTS -cp /tmp/jenkins-slave.jar \ -# hudson.remoting.jnlp.Main -headless \ -# -jnlpUrl $JENKINS_JNLP_URL $JENKINS_SECRET $JENKINS_NAME +exec java $JAVA_OPTS -cp /tmp/jenkins-slave.jar \ + hudson.remoting.jnlp.Main -headless \ + -url $JENKINS_URL $JENKINS_SECRET $JENKINS_NAME -exec java -jar /tmp/jenkins-slave.jar -jnlpUrl $JENKINS_JNLP_URL + +### Produces 403 Forbidden => exec java -jar /tmp/jenkins-slave.jar -jnlpUrl $JENKINS_JNLP_URL