Command to run and initiate the slave connection. Each line represents a different argument.

The following environment variables are available:

A Jenkins slave should be started and connected to $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JNLP_URL

The default command downloads and starts the slave using curl:

sh
-cx
curl --connect-timeout 20 --max-time 60 -o slave.jar $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JAR_URL && java -jar slave.jar -jnlpUrl $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_JNLP_URL -secret $DOCKER_SWARM_PLUGIN_JENKINS_AGENT_SECRET -noReconnect -workDir /tmp