0% found this document useful (0 votes)
1 views

Devops Program 5 new

This document provides an introduction to Jenkins, a free and open-source CI/CD tool used for automating software development processes. It outlines the installation methods for Jenkins on local and cloud environments, including using a WAR file and Windows installer, and details the configuration steps for first-time use. Additionally, it covers the Jenkins dashboard, plugin installation, and global tool configuration for Java, Maven, and Gradle.

Uploaded by

Chethan N
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Devops Program 5 new

This document provides an introduction to Jenkins, a free and open-source CI/CD tool used for automating software development processes. It outlines the installation methods for Jenkins on local and cloud environments, including using a WAR file and Windows installer, and details the configuration steps for first-time use. Additionally, it covers the Jenkins dashboard, plugin installation, and global tool configuration for Java, Maven, and Gradle.

Uploaded by

Chethan N
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Devops Laboratory(BCSL657D) VI SEM

Experiment 5:
Introduction to Jenkins: What is Jenkins? Installing Jenkins on Local or Cloud
Environment, Configuring Jenkins for First Use.
Objective:
To understand the fundamentals of Jenkins, install it on a local or cloud environment, and
configure it for first-time use.
1.What is Jenkins
 Jenkins is a CI CD tool
 Free & Open Source
 Written in Java
What is CI & CD: Continuous Integration, Delivery & Deployment
CI/CD is a method to frequently deliver apps to customers by introducing automation
into the stages of app development. The main concepts attributed to CI/CD are
continuous integration, continuous delivery, and continuous deployment.

Fig: CI/CD (Continuous Integration, Delivery and Deployment)

Jenkins is an open-source automation server used for:


✅ Continuous Integration (CI) – Automatically testing and integrating code changes

✅ Continuous Deployment (CD) – Automating application deployment

✅ Building Pipelines – Managing end-to-end software development workflows

✅ Plugin-Based Extensibility – Supporting tools like Maven, Gradle, Ansible, Docker,


and Azure DevOps.

M S REKHA, DEPT OF CSE 1


Devops Laboratory(BCSL657D) VI SEM

Why Use Jenkins?


✔ Automates builds and tests

✔ Reduces manual intervention

✔ Improves software quality

✔ Works with multiple tools and platforms


2.Installing Jenkins
Jenkins can be installed using multiple methods:
Method 1: Jenkins WAR File – Universal method using Java
Method 2: Windows Installer (.msi) – Recommended for Windows
Method 3: Linux Package Manager – Best for Linux Users

Method 1:(Installation of Jenkins):


Installing Jenkins Using WAR File (Works on Any OS)
This method allows you to run Jenkins without installing it as a service.
Step 1: Download the Jenkins WAR File
Download Jenkins and Choose Generic Java Package (.war)
And copy the downloaded file and paste it by creating a folder named as “Jenkins”
Step 2: Run Jenkins Using Java
Navigate to the folder where the .war file is downloaded and run:
cd\
cd Jenkins
now the path will be in c:\jenkins\
now type,
java -jar jenkins.war
Now, it will provide the password to process the installation for Jenkins.
Step 3: Open Browser and type localhost:8080
Go to: http://localhost:8080

M S REKHA, DEPT OF CSE 2


Devops Laboratory(BCSL657D) VI SEM

Step 4: Unlock Jenkins & Setup


1.Find the initial password
2. Install plugins

3. Create an admin user by providing details like username, password, full name and
email id and click finally save and continue.
Jenkins is now ready!

Output:

Method 2: (Installation of Jenkins)


Windows Installer (.msi) – Recommended for Windows
Step 1: Download Jenkins
Download Jenkins and Choose Windows Installer (.msi) for an easy setup.

M S REKHA, DEPT OF CSE 3


Devops Laboratory(BCSL657D) VI SEM

Step 2: Install Jenkins


󾠮 Run the downloaded .msi file.
󾠮 Follow the installation wizard.
󾠮 Select Run Jenkins as a Windows Service (recommended).
󾠮 Choose the installation directory (default: C:\Program Files\Jenkins\java\jdk-17).
󾠮 Click Install and wait for the setup to complete.
Step 3:Open C driveprogram filesjenkins
In that page, right click and select terminal. then a path is created in terminal as follows.
C:\program files\jenkins>
Step 4: Start Jenkins
Type ./jenkins.exe start press enter.
You will get service with id Jenkins starts running.
Now type cd\
It enters into c:\>
󾠮 Open a web browser and go to: http://localhost:8080
Step 5: Unlock Jenkins
“C:\ProgramData\Jenkins\.jenkins\secrets\initialAdminPassword”
The above path will be displayed. copy it and paste in the terminal displayed at c:\> in
before step 4.
Step 6:
It generates the Admin Password of Jenkins Installation in Notepad.
Copy the password and paste it into the Jenkins setup page.
Step 7: Install Recommended Plugins
Jenkins will prompt you to install plugins. Click "Install Suggested Plugins".
Step 8: Create Admin User
󾠮 Set up a Username, Password, and Email.
󾠮 Click Save and Finish.
Jenkins is now ready!
M S REKHA, DEPT OF CSE 4
Devops Laboratory(BCSL657D) VI SEM

Output:

3. Configuring Jenkins for First Use:


3.1 Understanding the Jenkins Dashboard
After logging in, you will see:
🔹 New Item → Create Jobs/Pipelines
Manage Jenkins → Configure System, Users, and Plugins
🔹 Build History → View previous builds

🔹 Credentials → Store secure authentication details.


Output:

M S REKHA, DEPT OF CSE 5


Devops Laboratory(BCSL657D) VI SEM

3.2 Installing Additional Plugins


Jenkins supports plugins for various tools like Maven, Gradle, Docker, and Azure
DevOps.
🔹 To install a plugin:
󾠮 Go to Manage Jenkins → Manage Plugins
󾠮 Search for the required plugin
󾠮 Click Install without Restart
Output:

✅ 3.3 Setting Up Global Tool Configuration


Configure Java, Maven, and Gradle in Jenkins:
󾠮 Go to Manage Jenkins → Global Tool Configuration
󾠮 Add paths for:
JDK ( C:\Program Files\Java\jdk-17 )
Maven ( C:\Maven\apache-maven-<version> )
Gradle ( C:\Gradle\gradle-<version> )

M S REKHA, DEPT OF CSE 6


Devops Laboratory(BCSL657D) VI SEM

󾠮 Click Save

M S REKHA, DEPT OF CSE 7

You might also like