DPA Exp2.1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

DEVOPS PROCESS AUTOMATION LAB

Worksheet -2.1
Subject code: 22CAP-745

Student Name: ANSHUMAN UID:22MCC20125


Section/Group: 22MCD-2/B Semester:3rd
Date of Performance:

Aim: Write the steps and considerations to install Jenkins for software development projects and
should be kept in mind during the installation process.

Objective: To familiarize myself with the installation process of Jenkins Server. We are going
to use the following essential steps.

Step 1: Install Java


Jenkins is a Java-based application, so you'll need to install the Java Development Kit (JDK). You
can download and install OpenJDK or Oracle JDK.
• Download the JDK from the official Oracle website or the OpenJDK website.
https://www.oracle.com/java/technologies/javase-downloads.html.
• Run the JDK installer (‘.exe’ file) and follow the installation instructions to complete the
installation.

Step 2: Download Jenkins


1. Visit the Jenkins Download Page:
• Open a web browser and go to the Jenkins download page at
https://www.jenkins.io/download/.
2. Select Windows Installer:
• On the Jenkins download page, you'll see a section for Windows. Click on the "Windows"
link to download the Windows installer.
1
Step 3: Install Jenkins
1. Run the Jenkins Installer:
• Locate the downloaded Jenkins installer (‘.msi’ file) and double-click on it to run the installer.
2. Jenkins Setup Wizard:
• The Jenkins Setup Wizard will open. Follow these steps:
• Click "Next" to start the installation.
3. Choose Installation Directory:
• Choose the installation directory for Jenkins. The default directory is usually fine,
but you can change it if needed.
• Click "Next" to proceed.
4. Select Service Account:
• Choose the service account that Jenkins will run under. The default option is "Install as a
service," which is recommended. You can also choose "Run service as" and specify a
custom account if necessary.
• Click "Next" to continue.

5. Configure Port:
• Configure the port for Jenkins. The default port is 8080, but you can change it if needed.
6. Plugin Selection:
• Choose whether to install suggested plugins or select custom plugins. For most users,
installing the suggested plugins is a good choice.
• Click "Next" to proceed.
7. Create Admin User:
• Create an admin user for Jenkins and specify a password. Make sure to remember
this password, as you'll need it to unlock Jenkins.
• Click "Next" to continue.
8. Installation:
• Click "Install" to begin the installation.
9. Installation Complete:

2
• The installer will complete the installation, and you'll see a message indicating the success
of the installation.
• Click "Finish" to close the installer.
Step 4: Start Jenkins
• Jenkins will start automatically as a Windows service. There's no need to manually start it.

Step 5: Access Jenkins


• Open a web browser and go to ‘http://localhost:8080’ to access the Jenkins web interface.
• If you've installed Jenkins on a different machine, replace "localhost" with the hostname or
IP address of that machine.

Step 6: Unlock Jenkins


• In the web interface, you'll be prompted to enter the initial admin password. To find this
password, navigate to the location where Jenkins stores it, typically in a file called
"initialAdminPassword" in the Jenkins installation directory.

Step 7: Complete Setup


• Follow the on-screen instructions to complete the setup by creating an admin user and
installing recommended plugins.

Step 8: Start Using Jenkins


• Once the setup is complete, you can start using Jenkins to create and run jobs (builds and
pipelines).

Learning outcomes (What I have learnt):


• Learn about the installation of Jenkins on their systems.
• Understand the need for Java and install it.
• Learn about configuring Jenkins as a service.
• Learn to create an admin user during the initial setup.
• Learn about the installation and management of Jenkins plugins.
3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy