windows jenkins slave agent setup
parent
78b7ec53f4
commit
4009b10d22
@ -0,0 +1,28 @@
|
||||
# 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
|
||||
Loading…
Reference in New Issue