From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Solution: Create artifacts and reports

Solution: Create artifacts and reports

I'm so glad you're joining me for this challenge. This one really made my day. In this challenge, we're working with a Jenkins pipeline that needs to be configured to use a specific tool to create artifacts and then create reports. I started by making sure the JUnit plug-in was installed. The pipeline will use the plug-in to collect any test reports generated by Maven. Which means I also needed to make sure I added an installation for the latest version of Maven in the Jenkins tool configuration. There may be a newer version available by the time you solve this challenge. With the tool configuration in place, I updated the provided Jenkins file to use that specific version of Maven for each pipeline run. If this version of Maven isn't installed on the system where the job is running, this This setting will make sure it gets installed automatically. Then I added an always block with calls to collect the reports and artifacts. The pipeline run shows a stage where Maven is installed. And…

Contents