Skip to content

Commit

Permalink
Agent name backwards compatabiltiy (jenkinsci#28)
Browse files Browse the repository at this point in the history
* make jenkins agent name change backwards compatible

* forgot to remue the url option from copy paste
  • Loading branch information
jredl-va authored and lemeurherve committed Mar 27, 2017
1 parent 28818fd commit f93f2eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jenkins-slave
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ else
URL="-url $JENKINS_URL"
fi

if [ -n "$JENKINS_NAME" ]; then
JENKINS_AGENT_NAME="$JENKINS_NAME"
fi

if [ -z "$JNLP_PROTOCOL_OPTS" ]; then
echo "Warning: JnlpProtocol3 is disabled by default, use JNLP_PROTOCOL_OPTS to alter the behavior"
JNLP_PROTOCOL_OPTS="-Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true"
Expand Down

0 comments on commit f93f2eb

Please sign in to comment.