A master represents basic installation of Jenkins and it handles all tasks for build system. It can satisfy all user requests and it has capacity to build projects on its own. A slave is a system that is set up to reduce burden of build projects from the master but delegation behavior depends on the configuration of each project. Delegation can be configured specific to build job. On Jenkins dashboard, go to Manage Jenkins. Click on Manage Nodes link. It will provide information on all nodes as shown in below figure.
- Practical AWS Networking
- Learning Azure Functions
- Jenkins Continuous Integration Cookbook
- Jenkins Essentials – Second Edition
- DevOps for Web Development
- Implementing DevOps with Microsoft Azure
- DevOps Bootcamp
- Jenkins Essentials
To create a slave node click on the New Node.
Provide Name, Description, Labels etc. Select Launch slave agents via Java Web Start as Launch method. Provide Label; in our case it is java8.
Click on Save. It will open a page that gives details on how to launch slave node.
Open terminal on Windows machine and run javaws http://192.168.13.128:8080/computer/WindowsNode/slave-agent.jnlp
It will open a dialogue box for downloading application.
Run Jenkins Remoting Agent.
Small window for Jenkins slave agent will open.
Slave WindowsNode will be connected via JNLP agent.
On Jenkins dashboard, go to Manage Jenkins. Click on Manage Nodes link. It will provide information on all nodes as shown in below figure. Verify both the nodes in Build Execution Status section of left most sidebar.
If we want to run selective build job on to specific node then we can configure it build job wise as shown in below screenshotfigure. Check Restrict where this project can be run and provide Label expression given to specific node on the job configuration page.
Click on Build Now to execute build. Verify the console and find Building remotely on WindowsNode we configured in above section.
Such configuration is useful where we want to run build job in specific set of runtime environment which is available on specific node.