using host name to name agent
This commit is contained in:
parent
7b87d4ea13
commit
b1d2dfed6f
1 changed files with 6 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue