Jenkins is a Open source Java based program used to automate the Continuous Integration process of Project builds. In real time, every project will be having different phases like Source Code development, Build process, Continuous Integration and Continuous Delivery.
Copy the password from given location,
To create admin user,
To manage Jenkins nodes,
Choose a name and select permanent agent,
The red X mark indicates to launch the agent in our slave node...
There are different launch methods, but I prefer launching via web start....
Go to Manage Jenkins ---> Configure Global System...
Now, Launch agent via Java Web start is enabled in launch method...
Click on Launch...
Click on Run, it will start the agent in Slave node...
Agent started....
Similarly we can create different slave nodes and we can launch the agent in different ways....
For more productivity, automation plays most important role. To automate build process, many Organizations make use of different tools like ANT, Maven... Similarly for automating Integration process, we use Jenkins tool. In this post, I am going to discuss about the setup of Jenkins Master/Slave environment and how to create/build projects.
Jenkins is developed by Kohsuke Kawaguchi, it is exact copy of Hudson. After acquisition of SUN by Oracle, Hudson rights moved to Oracle and then its not completely Open source. So, Kohsuke developed Jenkins from Hudson and released it as Open Source.
In Jenkins, to balance the load of jobs we setup master/slave environment. So that the jobs will be shared among the master and its slave nodes. It is better to leave Master node for Jenkins Administration and distribute the jobs among slave nodes.
Installation is so simple, just copy the war file to /home/ubu/apache-tomcat-7.0.75/webapps and once tomcat started, Jenkins will be deployed.
root@ubuntu-kvm:/home/ubu/apache-tomcat-7.0.75# cd webapps/
root@ubuntu-kvm:/home/ubu/apache-tomcat-7.0.75/webapps#
root@ubuntu-kvm:/home/ubu/apache-tomcat-7.0.75/webapps# ls
docs examples git git.war host-manager jenkins jenkins.war manager ROOT
root@ubuntu-kvm:/home/ubu/apache-tomcat-7.0.75/webapps#
Open in the browser,
Copy the password from given location,
To create admin user,
To manage Jenkins nodes,
Choose a name and select permanent agent,
The red X mark indicates to launch the agent in our slave node...
There are different launch methods, but I prefer launching via web start....
Go to Manage Jenkins ---> Configure Global System...
Select "Random", TCP port for JNLP agents...
Now, Launch agent via Java Web start is enabled in launch method...
Click on Launch...
Agent started....
Similarly we can create different slave nodes and we can launch the agent in different ways....
################################################################################
No comments:
Post a Comment