Saturday 16 May 2015

Creating slaves nodes of Linux and windows machines in Jenkins

Jenkins is a continuous integration tools for software development written in Java, where Builds can be started by  by commit in a version control system like git, svn  or by scheduling a time.
Builds can also be triggered after completing another build by having build dependencies by means of pre and post build actions.
Jenkins follows a master slave mechanism where no of slave nodes which are the actual clients where the builds are to be executed are added to the Jenkins masters. slave/masters can be running any operating system.
In this post we see how to add the Linux and windows nodes as slaves to the masters.
  1. From the Jenkins server navigate to the Manage Jenkins link on the left pane of the main page.
  2. which will take us to the control page of Jenkins where Manage Nodes link can be found.
  3. Now click the New Node link to create a new node
  4. Creating Linux node
  5. Enter the node name(Linux_Slave) and press OK
  6. Now click the configure link on the left pane as below and provide the configuration parameters as show in the screenshot.

  7. Here we provide the SSH login credentials to login to Linux machine and the path of JAVA_HOME has been given as a parameter.
  8. Save the node and verify the log console o the node.
  9.  Now the Slave node Linux_Slave is added to the jenkins master server. This node can be configure to use for any Jobs.

     
  10. Same process has to be followed to add a windows machine as slave to the Jenkins master.
  11.  The login method can be to use java web start as below
  12. Below picture shows the windows and Linux machine are added as slave nodes

No comments:

Post a Comment