diff --git a/scripts/windows_agent_start.ps1 b/scripts/windows_agent_start.ps1 index 48b9ec9..cfea116 100644 --- a/scripts/windows_agent_start.ps1 +++ b/scripts/windows_agent_start.ps1 @@ -19,4 +19,9 @@ $JENKINS_SERVER="jenkins.local" $AGENT_ROOT="D:\" $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 \ No newline at end of file +java -jar ${SWARM_PLUGIN_JAR} ` + -master http://${JENKINS_SERVER}:8080 ` + -executors 1 ` + -fsroot ${AGENT_ROOT} ` + -labels windows ` + -name $env:computername \ No newline at end of file