1
0
Fork 0

using host name to name agent

This commit is contained in:
Christian Kühnel 2019-12-17 08:25:57 +00:00
parent 7b87d4ea13
commit b1d2dfed6f

View file

@ -19,4 +19,9 @@ $JENKINS_SERVER="jenkins.local"
$AGENT_ROOT="D:\" $AGENT_ROOT="D:\"
$SWARM_PLUGIN_JAR="C:\jenkins\swarm-client.jar" $SWARM_PLUGIN_JAR="C:\jenkins\swarm-client.jar"
java -jar ${SWARM_PLUGIN_JAR} -master http://${JENKINS_SERVER}:8080 -executors 1 -fsroot ${AGENT_ROOT} -labels windows java -jar ${SWARM_PLUGIN_JAR} `
-master http://${JENKINS_SERVER}:8080 `
-executors 1 `
-fsroot ${AGENT_ROOT} `
-labels windows `
-name $env:computername