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 693e825 commit f9ac0c8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ curl -sSLo /tmp/jenkins-slave.jar https://repo.jenkins-ci.org/releases/org/jenk
###echo "DOCKER-ENTRYPOINT >> checking integrity of slave.jar"
###jar -tvf /tmp/jenkins-slave.jar

echo "DOCKER-ENTRYPOINT >> establishing JNLP connection with Jenkins"
exec java $JAVA_OPTS -cp /tmp/jenkins-slave.jar \
hudson.remoting.jnlp.Main -headless \
-jnlpUrl $JENKINS_JNLP_URL $JENKINS_SECRET $JENKINS_NAME
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 -jar /tmp/jenkins-slave.jar -jnlpUrl $JENKINS_JNLP_URL

0 comments on commit f9ac0c8

Please sign in to comment.