Skip to content

Commit

Permalink
Update for -jnlpUrl deprecation (#17)
Browse files Browse the repository at this point in the history
The -jnlpUrl options is deprecated in favour of -url and -name.Alos, puts values in quotes
  • Loading branch information
chorrell authored May 6, 2024
1 parent eda8500 commit bcf7a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-jenkins-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ After=network.target
[Service]
ExecStartPre=/usr/bin/curl -o ${WORK_DIR}/agent.jar -Ssl ${JENKINS_URL}/jnlpJars/agent.jar
ExecStart=/usr/bin/java -jar ${WORK_DIR}/agent.jar -jnlpUrl ${JENKINS_URL}/computer/${AGENT_NAME}/jenkins-agent.jnlp -secret @${WORK_DIR}/jenkins-agent-secret -workDir ${WORK_DIR}
ExecStart=/usr/bin/java -jar ${WORK_DIR}/agent.jar -url ${JENKINS_URL} -name "${AGENT_NAME}" -secret @${WORK_DIR}/jenkins-agent-secret -workDir "${WORK_DIR}"
Restart=always
User=${USER}
RestartSec=10
Expand Down

0 comments on commit bcf7a3c

Please sign in to comment.