2. WHAT IS JENKINS
• Jenkins is an open-source automation tool written in Java with plugins built
for Continuous Integration purposes.
• With Jenkins, organizations can accelerate the software development process
through automation.
• Jenkins achieves Continuous Integration with the help of plugins. Plugins
allows the integration of Various DevOps stages.
3. ADVANTAGES OF JENKINS
• It is an open-source tool with great community support.
• It is easy to install.
• It has 1000+ plugins to ease your work. If a plugin does not exist, you can
code it and share it with the community.
• It is free of cost.
• It is built with Java and hence, it is portable to all the major platforms.
4. CONTINUOUS INTEGRATION
• What is Continuous Integration?
• Why do we need it?
• Different phases of adopting Continuous Integration
5.
6. WHY DO WE NEED CONTINUOUS INTEGRATION
• Detect problems or bugs, as early as possible, in the development life cycle.
• Since the entire code base is integrated, built and tested constantly , the
potential bugs and errors are caught earlier in the life cycle which results in
better quality software.
15. CONTINUOUS DELIVERY
• Continual delivery of code to an environment once the code is ready to ship.
This could be staging or production. The idea is the product is delivered to a
user base, which can be QAs or customers for review and inspection.
20. JENKINS INSTALLATION
• We will be using open java for our demo, Get the latest version from http://openjdk.java.net/install/
yum install java-1.8*
yum -y install java-1.8.0-openjdk-devel
• Confirm Java Version and set the java home
java -version
find /usr/lib/jvm/java-1.8* | head -n 3
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-<Java version which seen in the above output>
export JAVA_HOME
PATH=$PATH:$JAVA_HOME
# To set it permanently update your .bash_profile
vi ~/.bash_profile
The output should be something like this,
[root@~]# java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
21. CONT…
• You can install jenkins using the rpm or by setting up the repo. We will set up the repo so
that we can update it easily in the future.
• Get the latest version of jenkins from https://pkg.jenkins.io/redhat-stable/ and install
yum -y install wget
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-
stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
yum -y install jenkins
Start Jenkins
# Start jenkins service
service jenkins start
# Setup Jenkins to start at boot,
chkconfig jenkins on
Accessing Jenkins
By default jenkins runs at port 8080, You can access jenkins at
http://YOUR-SERVER-PUBLIC-IP:8080