![]() |
VOOZH | about |
A CI/CD pipeline in Jenkins automates the process of building, testing, and deploying code. It helps developers integrate changes and deploy them quickly and reliably. Jenkins makes this automation easy and efficient.
Log in to your Jenkins account. This is where all your Jenkins jobs and pipelines will be configured and monitored.
When you logged in, you will be redirected to the Jenkins console or dashboard. This is where you can manage all your Jenkins jobs, pipelines, and settings.
On the Jenkins dashboard, click on the "New Item" option to create a new project select the option available in the Dashboard.
On the next screen, list of options will be visible, along with a field to name the pipeline. Add a suitable name and select the "Pipeline" option to proceed.
The pipeline configuration page will open. In the General section:
In the Build Triggers section:
We need to specify the branch and repository and give the credentials too. And add additional behaviors if required so far. Refer to the screenshot to have a better understanding.
In the Advanced Project Options section:
This is the most critical part of the configuration process. In the Pipeline section:
Sample Jenkins Pipeline Script
After writing the pipeline is done click on save it will be directly redirected to the Dashboard of the project there we can use, the "Build Now" option to run the pipeline and check if it is successful or not, by using stage view or console output.
Once the pipeline is triggered, you can monitor its progress:
Stage View: Provides a visual representation of the pipeline stages and their status (success, failure, etc.).
Console Output: Displays the detailed logs of each stage. This is useful for debugging any issues that may occur during the pipeline execution.
At the bottom of the Console Output or Stage View, you will see the status of the pipeline:
Here we successfully created a Jenkins CI/CD pipeline to automate the process of building, testing, and deploying a Java web application .war file.