sample xml

main
Yik Teng Hie 3 years ago
parent 1115289210
commit b1ce066b27

@ -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
<service>
<id>jenkins8080agent</id>
<name>Jenkins Agent for jenkins:8080</name>
<description>This service runs agent process connected to jenkins:8080</description>
<env name="JENKINS_HOME" value="%BASE%" />
<executable>C:\tools\jdk-11\bin\java.exe</executable>
<arguments>-jar c:\jenins\agent.jar -jnlpurl http://jenkins:8080/jenkins-agent.jnlp -secret abcd -wordDir "c:\jenkins"</arguments>
<log mode="roll" />
<onfailure action="restart" />
<serviceaccount>
<domain>windows-pc</domain>
<user>jenkins</user>
<allowservicelogon>true</allowservicelogon>
</serviceaccount>
</service>
```
# Setup Jenkins build to target windows slave node for build
- Create a build
- Set label to target the slave node

Loading…
Cancel
Save