0% found this document useful (0 votes)
13 views6 pages

Ex 4-5 CI-CD Pipeline - Jenkins

The document outlines the steps to develop a CI/CD pipeline using Jenkins and deploy a web application in a cloud environment. It includes detailed instructions on installing Jenkins, creating a new job, configuring a pipeline, and executing it through a direct script. The procedure concludes with a successful deployment of the pipeline in a Windows environment.

Uploaded by

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

Ex 4-5 CI-CD Pipeline - Jenkins

The document outlines the steps to develop a CI/CD pipeline using Jenkins and deploy a web application in a cloud environment. It includes detailed instructions on installing Jenkins, creating a new job, configuring a pipeline, and executing it through a direct script. The procedure concludes with a successful deployment of the pipeline in a Windows environment.

Uploaded by

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

Ex.

No: 4/5 JENKINS - CI/CD PIPELINE DEVELOPMENT & DEPLOYMENT


DATE:

AIM:
To develop a CI / CD pipeline using Jenkins and deploy the web application in any
cloud environment.

PROCEDURE:
Step 1: Download and Install Jenkins for Windows environment.

Step 2: Create a new Jenkins job


Open a web browser and navigate to localhost:8081. Unless you have a previous Jenkins
installation, it should go straight to the Jenkins dashboard. Click Create New Jobs. You
can also click New Item on the left.
Step 3: Create a pipeline job
In this step, you can select and define what type of Jenkins job you want to create.
Select Pipeline and give it a name (e.g., TestPipeline). Choose project type as Pipeline
and Click OK to create a pipeline job.

Step 4: A Jenkins job configuration page will be displayed as shown below. Scroll down
to find Pipeline section.

There are two ways to execute a Jenkins pipeline. One way is by directly writing a pipeline
script on Jenkins, and the other way is by retrieving the Jenkins file from SCM (source
control management).
Step 5: Configure and execute a pipeline job through a direct script.
To execute the pipeline with a direct script, begin by copying the contents of the sample
Jenkinsfile from GitHub/any web source.

The Jenkins file is structured with three Stages: Build, Test, and Deploy, which are
arbitrary and can be anything. Inside each Stage, there are Steps; in this example, they
just print some random messages. Click Save to keep the changes, and it should
automatically take you back to the Job Overview.
Step 6: The pipeline build is ready to run as shown below. Choose Build Now option.

To start the process to build the pipeline, click Build Now. If everything works, you will
see your first pipeline (like the one below).
Step 7: To see the output from the pipeline script build, click any of the Stages and
click Log. You will see a message as shown below.

//Build Log

//Test Log
//Deploy Log

//Full Stage View option in Jenkins dashboard.

//Pipeline Status

RESULT:
Thus, the procedure for creating a CI/CD pipeline using Jenkins was developed
and deployed successfully in the windows environment.

You might also like