Ex 4-5 CI-CD Pipeline - Jenkins
Ex 4-5 CI-CD Pipeline - Jenkins
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 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
//Pipeline Status
RESULT:
Thus, the procedure for creating a CI/CD pipeline using Jenkins was developed
and deployed successfully in the windows environment.