How to Install and configure Jenkins on CentOS 6.4 – Part II

Jenkins-LogoI 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.

Jenkins-Credential-1

 

Now Click on “Add domain” as shown in the below image.

Jenkins-Credential-2

 

Provide a user friendly name and some description to it and press “OK”

Jenkins-Credential-3

 

Now Click on “Add Credentials” tab then provide your information as shown in the below image.

Jenkins-Credential-4

 

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.

Jenkins-AddNode-1

 

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.

Jenkins-AddNode-2

 

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.

Jenkins-AddNode-3

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

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

7 thoughts on “How to Install and configure Jenkins on CentOS 6.4 – Part II

  1. Hi
    Can you provide sample build using jenkins?
    I build deploy sample files to a certain unix server.

    Thank you,
    Newbie in jenkins

  2. Hi!

    Can you tell a little more about the step “Add Credentials” – SSH Username with private key?
    see pic: Jenkins-Credential-4.png.

    Q1. User “ec2-user”?
    Is “ec2-user” a OS user or a just user created by http://localhost:8080/securityRealm/addUser ?

    Q2. Where or How can i get the SSH Private Key as Input for the field Private Key by choice “Enter directly”?
    Thanks

    • Hi Tim,

      Yes “ec2-user” is a OS user. If you look at the picture: Jenkinks-Credentials-4.png then you will able to see that we are creating the credential for SSH. So it must be a OS user. SSHD service can be configured for passwordbased and passwordless. Passwordless is more secure than passwordbased. You need to configure the server SSHD service accordingly. If you have a key to login to the server then you can paste that in Private key section. Else if you have a username and password for a node then choose “UserName with Password” while adding the credentials. Please let me know if you still have any doubts.

      -Tapas

Leave a Reply