0% found this document useful (0 votes)
23 views12 pages

Session 4

jenkins
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views12 pages

Session 4

jenkins
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Session – 4

Continuous Delivery & DevOps


Continuous Integration
with Jenkins
Jenkins 2 has arrived. It comes with built-in support for
delivery pipelines, improved usability, a new setup
experience, and complete backward compatibility with
existing Jenkins installations.

2
Key Points:

• how to install and configure Jenkins.


• you'll be able to get end-to-end experience in:
 build job creation
 Configuration
 static code analysis
 Notifications
 Jenkins plugins.

3
Introduction
Continuous integration (CI):
Continuous integration is a development practice of code
integration into a shared repository. Each integration is verified
by an automated build and automated tests.

In simple words, CI is a software engineering practice where


each check-in made by a developer is verified by either of the
following:
Pull mechanism: Executing an automated build at a scheduled
time.
Push mechanism: Executing an automated build when changes
are saved in the repository.
This step is followed by executing a unit test against the latest
changes available in the source code repository
Continuous Integration
• Continuous integration is a development practice of code
integration into a shared repository. Each integration is
verified by an automated build and automated tests
Continuous Integration Contd..
Jenkins doesn't need the introduction; it is an open source and
one the most popular CI tools available in the market. It helps in
automating the repetitive task of CI. Jenkins makes the process
effective and transparent.

The next question you may ask is what makes Jenkins so


popular. I already gave you one reason – can you recollect?

Yes, because it is open source. Open source tools come with


predefined notions, but the Jenkins community is different, and
Jenkins as a tool is quite different.

6
Continuous Integration Contd..
Reasons for the popularity of Jenkins? Let's have a look:
• It is written in Java
• It provides extensibility with over 400 plugins for different
integrations, such as the following:
• Source code management * Build triggers
• Build reports * Artifact uploaders
• External site/tool integrations * UI plugins
• Authentication and user management
• Cluster management and distributed build
It supports Java, .NET, Ruby, Groovy, Grails, PHP, Android, and
iOS applications
• It is easy to use:
• It has a simple learning curve
• Easy installation
• Easy configuration
Installing Jenkins:
• Jenkins provides us with multiple ways to install it for all
types of users. We can install it on at least the following
operating systems:

• Ubuntu/Debian
• Windows
• Mac OS X
• OpenBSD
• FreeBSD
• openSUSE
• Gentoo
• CentOS/Fedora/Red Hat.
9
Architecture of Jenkins

10
Installing and Configuring Jenkins
• Login to your Ubuntu lab provided with the course.
• Open the terminal and execute the command available in
the lab document 3.1 to add the key to the system.
• Edit the sources.list file, add the command to the file, and
save it.
• Update the apt-get package.
• Install JDK 8+ version.
• Install Jenkins via apt-get package.
• Navigate to x.x.x.x:8080 in the browser of your virtual
Machine.
• Get the password and enter it in the Jenkins window.
• Create a new role/job in Jenkins.
• Explore the free style project section and build section.
11
Questions
1. Sketch the Architecture of Jenkins.
2. List out the steps involved in installation of Jenkins.
3. Distinguish Pull and Push Mechanisms.
4. Explain in detail about Continuous Integration.
5. Explain the features of Jenkins.

You might also like