From b1ce066b27d4feab78a6f4902e27d222bb3a6239 Mon Sep 17 00:00:00 2001 From: Yik Teng Hie Date: Wed, 9 Nov 2022 11:10:43 +0800 Subject: [PATCH] sample xml --- jenkins/windows-slave-node.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/jenkins/windows-slave-node.md b/jenkins/windows-slave-node.md index 4275dd6..9def9ab 100644 --- a/jenkins/windows-slave-node.md +++ b/jenkins/windows-slave-node.md @@ -33,6 +33,24 @@ - Run the agent using the `Windows Service Wrapper` as a Windows Service and log on as `jenkins` user profile - Create a ssh key and update `rsa_id.pub` to git server to allow agent to clone from git repo +```xml + + jenkins8080agent + Jenkins Agent for jenkins:8080 + This service runs agent process connected to jenkins:8080 + + C:\tools\jdk-11\bin\java.exe + -jar c:\jenins\agent.jar -jnlpurl http://jenkins:8080/jenkins-agent.jnlp -secret abcd -wordDir "c:\jenkins" + + + + windows-pc + jenkins + true + + +``` + # Setup Jenkins build to target windows slave node for build - Create a build - Set label to target the slave node