Command to run and initiate the agent connection. Each line represents a different argument.
The following environment variables are available:
A Jenkins agent should be started and connected to $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JNLP_URL
The default command downloads and starts the agent using curl:
sh
-cx
curl --connect-timeout 20 --max-time 60 -o agent.jar $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JAR_URL && java -jar agent.jar -jnlpUrl $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JNLP_URL -secret $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_SECRET -noReconnect -workDir /tmp