Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but wonât spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
Source –Â wisdomjobs.com
How Jenkins supports continuous deployment?
Jenkins offers good support for continuous deployment and delivery. Flow of any software development through deployment is shown below.
Main part of Continuous deployment is to make sure that the entire above shown process is automated. Jenkins accomplishes all of this using various plugins, one of them being âDeploy to container Pluginâ which was seen in the earlier lessons.
Many plugins are available which can actually give a graphical representation of the Continuous deployment process. But first letâs create another project in Jenkins to see how this works.
Create a simple project which emulates the QA stage and performs a test of the Helloworld application.
Step 1 â Go to the Jenkins dashboard and click on New Item. Choose a âFreestyle projectâ and enter the project name as âQAâ. Click on the Ok button to create the project.
Step 2 â in this example, we are keeping it simple and just using this project to execute a test program for the Helloworld application.
Now as your project QA is now setup, you can do a build to see if it builds properly.
Step 3 â Now click on Helloworld project and click on the Configure option
Step 4 â in the project configuration, choose the âAdd post-build actionâ and choose âBuild other projectsâ
Step 5 â in the âProject to buildâ section, enter QA as the project name to build. You can leave the option as default of âTrigger only if build is stableâ. Click on the Save button.
Step 6 â Build the Helloworld project, then in the Console output, you will also see that after the Helloworld project is successfully built, the build of the QA project will also happen.
Step 7 â Now install the Delivery pipeline plugin. Go to Manage Jenkins â Manage Pluginâs. In the available tab, search for âDelivery Pipeline Pluginâ. Click On Install without Restart. Once done, restart the Jenkins instance.
Step 8 â to view the Delivery pipeline in action, in the Jenkins Dashboard, click on the + symbol in the Tab next to the âAllâ Tab.
Step 9 â Enter any name for the View name and choose the option âDelivery Pipeline Viewâ.
Step 10 â in the next screen, leave the default options. User can change below settings
- Ensure the option âShow static analysis resultsâ is checked.
- Ensure the option âShow total build timeâ is checked.
- For the Initial job â Enter the Helloworld project as the first job which should build.
- Enter any name for the Pipeline
- Click the OK button.
Now you will get to see a great view of the entire delivery pipeline and you will be able to see the status of each project in the entire pipeline.
Another popular plugin is the build pipeline plugin.