Jenkins Configure Master and Slave Nodes
Jenkins Master and Slave Concept
A Jenkins master comes with the basic installation of Jenkins, and in this configuration, the master handles all the tasks for your build system.
If you are working on multiple projects you may run multiple jobs on each and every project. Some projects need to run on some particular nodes, and in this process, we need to configure slaves. Jenkins slaves connect to the Jenkins master using the Java Network Launch Protocol.
Jenkins Master and Slave Architecture
The Jenkins master acts to schedule the jobs and assign slaves and send builds to slaves to execute the jobs.
Steps to Configure Jenkins Master and Slave Nodes
5. Enter the required information.
Recommended by LinkedIn
Some required fields include:
Name: Name of the Slave. e.g: Tes
Description: Description for this slave (optional). e.g: testing slave
# of Executors: Maximum number of Parallel builds Jenkins master perform on this slave. e.g: #2
Remote root directory: A slave needs to have a directory dedicated to Jenkins. Specify the path to this directory on the agent. e.g: /home/
Usage: Controls how Jenkins schedules builds on this node. e.g: Only build jobs with label expressions matching this node.
Launch method: Controls how Jenkins starts this agent. e.g: Launch agent agents via SSHt
6. Enter the Hostname in the Host field.
7. Select the Add button to add credentials. and click Jenkins.
8. Enter Username, Password, ID, and Description.
9. Select the dropdown menu to add credentials in the Credentials field.
10. Select the next dropdown to add the Host Key Verification Strategy under Non verifying Verification Strategy.
11. Select Keep this agent online as much as possible in the Availability field.
12. Click the Save button.