From b1d2dfed6f5e0217953d85fd815419dc36ac6e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Tue, 17 Dec 2019 08:25:57 +0000 Subject: [PATCH] using host name to name agent --- scripts/windows_agent_start.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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