- ${%Connect agent to Jenkins one of these ways:} -
-- - - - ${%Launch agent from browser} -
-${%Run from agent command line:}
-javaws ${h.inferHudsonURL(request)}${it.url}jenkins-agent.jnlp-
- ${%Or if the agent is headless:} -
-java${it.launcher.vmargs == null ? '' : ' ' + it.launcher.vmargs} -jar agent.jar -jnlpUrl ${h.inferHudsonURL(request)}${it.url}jenkins-agent.jnlp ${it.launcher.getWorkDirOptions(it)}-
curl -sO ${jenkinsURL}jnlpJars/agent.jar +java -jar agent.jar -jnlpUrl ${jenkinsURL}${it.url}jenkins-agent.jnlp ${it.launcher.getWorkDirOptions(it)}
${%Run from agent command line:}
-java${it.launcher.vmargs == null ? '' : ' ' + it.launcher.vmargs} -jar agent.jar -jnlpUrl ${h.inferHudsonURL(request)}${it.url}jenkins-agent.jnlp -secret ${it.jnlpMac} ${it.launcher.getWorkDirOptions(it)}+
curl -sO ${jenkinsURL}jnlpJars/agent.jar +java -jar agent.jar -jnlpUrl ${jenkinsURL}${it.url}jenkins-agent.jnlp -secret ${it.jnlpMac} ${it.launcher.getWorkDirOptions(it)}
- ${%Run from agent command line, with the secret stored in a file:} + ${%Or run from agent command line, with the secret stored in a file:}
echo ${it.jnlpMac} > secret-file -java${it.launcher.vmargs == null ? '' : ' ' + it.launcher.vmargs} -jar agent.jar -jnlpUrl ${h.inferHudsonURL(request)}${it.url}jenkins-agent.jnlp -secret @secret-file ${it.launcher.getWorkDirOptions(it)}-