Jenkins setup in DevOps | Visualpath

What is Jenkins

Jenkins is a continuous integration server which can fetch the latest code from VCS, build it, test it and notify it to the developers. Jenkins can do many more things apart from just being a CI server. It was originally known a Hudson, Oracle inc owns Hudson now. Jenkins is an open source project written by Kohsuke Kawaguchi. Jenkins is a java based web application server. As a prerequisite, we need to setup first Java on the machine to run Jenkins server.

Features of Jenkins

OpenSorce
As jenkins is opensource there is lot contribution all around the world to the jenkins software. It has all the latest and greatest feature that developers integrating into it regularly

Devops Online Training



Jenkins Setup

Jenkins can be installed on windows, Linux or Mac OS. Jenkins just needs java software to run. In this tutorial, we will install jenkins on a ubuntu server. You can setup a vm or a cloud instance. 
Prereqs
Java runtime environment/ JRE can be installed on the system but we will install JDK as we will setup maven moving along and build some java code. To Build the java code we will need JDK.

JENKINS INSTALLATION ON UBUNTU:


sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk  


Installing Jenkins:


                      
wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ >/etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins  


Accessing Jenkins

 Jenkins runs on port 8080 by default.
 Open up a browser and use below url.
 http://jenkinsIP:8080.
Jenkins will set a random password to unlock jenkins setup. 




The password would be stored in /var/lib/jenkins/secrets/initialAdminPassword file. Read that file and get the password. Use that password to unlock jenkins


 Jenkins gives you an option to install some suggested plugins at the time of setup. You can select individual plugins or install suggested group of plugins. Select suggested plugin for now.








Welcome to Jenkins!


Comments