I have described in my previous article about Jenkins and how to install and configure user account on it. In this article I will describe about how to configure nodes on Jenkins. Nodes are the servers where we will deploy our applications. You can configure n number of Nodes in your Jenkins applications depending on the server capacity.
Before configuring a node we have to add there credential first. Like user name and password for the node if the node is passwordbased authentication enabled. Else you can add the user name and private key if the node is passwordless authentication enabled.
How to add credentials.
Log in to your Jenkins account. Click on the credential tab as shown in the below image.
Now Click on “Add domain” as shown in the below image.
Provide a user friendly name and some description to it and press “OK”
Now Click on “Add Credentials” tab then provide your information as shown in the below image.
After completing the Credential entry in the Jenknins now we will add the Node.
How to add Node on Jenkins.
Go to the main dashboard of Jenkins Click on “Manage Jenkins” > Click on “Manage Nodes” from the List.
You will find a Node named “Master” in the node list which is the Jenkins server itself.
To add a new node click on “New Node”. Enter the information and click on as shown in the below image.
Now enter all the information about your host as shown in the below Image. Click on the advance and modify your port number if you are using any different port for your SSH.
It will take some time to Lunch the new node and then you will able to see the information about the node in your Jenkins Dashboard. See the below image.
In my next article I will show you how to add and configure Jobs for a project. Basically we will deploy an application in the above configured node.
Share and Enjoy
Latest posts by Tapas Mishra (see all)
- Working with Docker – II - December 16, 2016
- Working with Docker – I - November 28, 2016
- How to work with Chef using Oracle VirtualBox and Vagrant on a Windows host – Part II - November 30, 2014