Add Jenkins Slave node in Linux system

check code quality in jenkins

Jenkins uses a Master-Slave architecture to manage distributed builds. In this architecture, the Master and Slave communicate through TCP/IP protocol.

In this tutorial, we learn how to add a Jenkins slave node in a Linux machine.

Also, read Running Jenkins in Kubernetes Cluster with Persistent Volume

Step 1: Enable agent on TCP port

Go to Manage Jenkins > Configure Global Security

Scroll down and find Agents Section and click on Fixed port or random port.

Step 2: Add node

Go to Manage Jenkins > Manage Nodes

Click on New Node and give Node name.

Configure the Node parameter according to your requirements and Save. (Choose Launch method ‘Launch slave agent via SSH’) and other details like below screenshot.

Step 3: Activate Node

Now you can see Slave node is added successfully. But it is offline. To activate the slave node Click on Launch agent.

Go to Jenkins Master and Check, Now Jenkins Successfully connected with the slave node.

Now you can create a distributed job and build on the slave node.

AmritMatti

I’m the owner of “DevOpsTechy.online” and been in the industry for almost 5 years. What I’ve noticed particularly about the industry is that it reacts slowly to the rapidly changing world of technology. I’ve done my best to introduce new technology into the community with the hopes that more technology can be utilized to serve our customers. I’m going to educate and at times demonstrate that technology can help businesses innovate and thrive. Throwing in a little bit of fun and entertainment couldn’t hurt right?

AmritMatti

I’m the owner of “DevOpsTechy.online” and been in the industry for almost 5 years. What I’ve noticed particularly about the industry is that it reacts slowly to the rapidly changing world of technology. I’ve done my best to introduce new technology into the community with the hopes that more technology can be utilized to serve our customers. I’m going to educate and at times demonstrate that technology can help businesses innovate and thrive. Throwing in a little bit of fun and entertainment couldn’t hurt right?

View all posts by AmritMatti →

Leave a Reply

Your email address will not be published. Required fields are marked *