Sunday 2 July 2017

Jenkins-1

                                                                Jenkins Installation
Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks such as building, testing, and deploying software. Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with the Java Runtime  Environment installed
Jenkins is continuous integration and continuous deployment tool.It is developed using java.Jenkins rich set of plugins makes it simple for CI/CD.To work with jenkins we must have java pre installed in our system.Both are open source tools.Using Jenkins we schedule jobs to deploy application.we have lot of plug-ins in jenkins .These plug-ins make our job easier.Previously jenkins is called Hudson.
Jenkins follow master and slave architecure with this. Mostly master is used to run the jobs.If Master busy with more jobs then slave comes into the picture to share the burden of master.
one master can have many number of slaves

i will tell you the steps to how to setup jenkins
-->
First install java on your linux vm using yum command

Install java using below command

[root@server1 ~]# yum install java

-->
To check java installed properly or not  check using below command

[root@server1 ~]# java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

-->
To download jenkins rpm package use below command(you can select your other version of jenkins also to do that go to jenkins.io website then choose required version of jenkins)

[root@server1 ~]#wget https://pkg.jenkins.io/redhat/jenkins-1.651-1.1.noarch.rpm

-->
check it downloaded rpm package using ls or ll comand

[root@server1]# ll
total 63020

drwxr-xr-x. 2 root    root        4096 May 16 14:49 backups
drwx------. 2 dhoni   dhoni       4096 Jul  2 07:49 dhoni
-rw-rw-r--  1 vagrant vagrant 64505828 Dec 29  2016 jenkins-1.651.3-1.1.noarch.rpm

-->
then install jenkins rpm package as below

[root@server1 home]# rpm -ivh jenkins-1.651.3-1.1.noarch.rpm
warning: jenkins-1.651.3-1.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID d50582e6: NOKEY
Preparing...                ########################################### [100%]
   1:jenkins                ########################################### [100%]

-->
Start the jenkins service as below

[root@server1 ~]# service jenkins start
Starting Jenkins                                           [  OK  ]

Now goto browser type the ip address of your vm in the URL section

http://192.168.33.10:8080


It will opens the jenkins UI in the browser as shown in below.


Actually First time you wont get any log in|sign up options as shown in below image at right side.with a little configuration you will get that.


If you face any problem while practicing feel free to comment it and Bookmark this blog for quick reference.We will try to help you.

If you like  share this with your friends.Follow us by email for our new posts 

Thanks

Devops Desk Team

No comments:

Post a Comment