Adding Windows Node to Jenkins Master
- Ensure your Jenkins Master is Running
- Create an Windows Instance with Java Installed. In this scenario we would use Windows 2016 Server
- Install Chocolatey and install Java 8
- To Connect Jenkins windows Node to Jenkins Master we use JNLP, To enable JNLP Navigate to Manage Jenkins => Global Security and Enable the Agents as shown below
- Navigate to Manage Jenkins => New Node and add the necessary configuration
- Now Create a Jenkins job to schedule the build on windows server
Build Parameters
- Build Parameters are the options to user to pass parameters while building the jobs
- Parameter types available are
- String
- Boolean
- Choice
- File
- Credentials
- To use this parameters on the Linux node use the following syntax
$Parameter-name
- Along with Build Parameters defined by the users Jenkins gives the list of Environmental Variables, To See complete list refer docs or do as shown below