add slave in jenkins

Configure Jenkins Master and Slave  

Jenkins is an open-source CI/CD tools for the development cycle. This helps us in continuous integration and continuous deployment. Whenever a commit comes from a file it starts running a job. Let’s see, how to install and configure the Jenkins master-slave server. Jenkins’s master slave architecture setup is very simply explained.

Check Out: How To Install Maven(Java) In Jenkins Using Plugin

You can reduce the load on the master server by creating a slave Jenkins server
where all the jobs will run. you can also set the number of executors means a
number of jobs would be run on the slave server.

When you have set up this configuration and trying to run the job from the master. These jobs will be running on the slave server. This will reduce the load on the master node and executes the jobs on the slave.

Step 1: you need to go to Manage Jenkins –> Manage node

Configure Jenkins Master

Note: you must have ssh plugin installed on the master server.

Step 2: Now you need to give it any name and click on permanent then Ok.

Here you will have to configure the Jenkins slave setup.

Step 3: After configuring Jenkins slave, the slave server will come up.

configure jenkins master slave

Check Out: Create Jenkins Production Job For Maven Project

Step 4: Now you have to configure a job for testing purposes and see the build should be created on a specified location on the slave and build successful.

install jenkins slave

Check the build location on the slave,

jenkins slave

The build has been created on the specified path which means all the jobs are 
running on the slave server.

You’re done. install jenkins slave  

LEAVE A REPLY

Please enter your comment!
Please enter your name here