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 f9ac0c8 commit af3c3ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit af3c3ad

Please sign in to comment.