EXPERIMENT NO.
6
Master and Slave Setup
1. Go to the Manage Jenkins section and scroll down to the section of Manage Nodes.
2. Click on Manage Nodes and Clouds then click on New Node
3. Give a name for the node, choose the Permanent Agent option and click on ok.
4. Enter the details of the node slave machine. Here
No. of executers in nothing but no. of jobs that this slave can run parallelly. Labels for
which the name is entered as “Slave1” is what can be used to configure jobs to use this
slave machine.
Usage to Use this node as much as possible.
launch method we select the option of “Launch agent by connecting it to the master”.
Custom WorkDir path as the workspace of your slave node.
Availability select “Keep this agent online as much as possible”.
Click on Save.
Once you complete the above steps, the new node machine will initially be in an offline state
but will come online if all the settings in the previous screen were entered correctly. One can at
any time make the node slave machine offline if required.
Click on Go to security configuration screen and change it. It will redirect to Configure Global
Security -> Agents -> click on Fixed radio button port: 49187 and click on save Button. Go back
to Nodes settings
We can see the above screen
Steps to Launch Agent and Connect
1. Click on Launch button, it will download the launch agent in your system.
2. Jenkins- slave.exe file should copy in the Jenkins folder which you installed in your system.
3. Double Click on jenkins – slave.exe.
4. Run the launch agent, click on run button and it will show connected.
5. In below screen shot, we can see the connected popup, click on file menu, select the install as
service and click yes button . Once it is done, refresh the page.