You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1004 B
Markdown

# Setup Windows Slave node
## Use case
- Windows Application build pipeline (Visual Studio C++ / C#)
## Tools
- for installing jenkins agent as a windows service
- [Windows Service Wrapper](https://github.com/winsw/winsw)
- Alternative tool
- [nssm - Non-Sucking Service Manager](https://nssm.cc/)
- [Package Manager - Chocolatey](https://chocolatey.org/)
## Windows
- Create a user 'jenkins'
## Steps
- Create a jenkins slave node setup on jenkins server
- Install JDK 11 (Preferable the same version as Jenkins Master Version)
- Create a folder `C:\jenkins`
- Download `agent.jar` from jenkins server
- 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
# Setup Jenkins build to target windows slave node for build
- Create a build
- Set label to target the slave node
- Git clone to the node
- Run the windows build script on the node