Session 4
Session 4
2
Key Points:
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.
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.