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.
Artifacts and fingerprinting - Jenkins Tutorial
From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale
Artifacts and fingerprinting
In this chapter, we'll take a closer look at artifacts and testing. Artifacts let us preserve and reuse the outputs created during a pipeline run. Testing provides fast feedback, helping teams catch problems before code moves closer to production. When combined, artifacts and testing make our pipelines more reliable, helping us build CICD workflows that scale. Let's start with Artifacts. I'm logged into my Jenkins server and I'm starting on the Installed Plugins page. I have the Copy Artifacts plugin installed so I can use it with any jobs that need to access the Copy Artifacts build step. I've created two jobs using the exercise files. One job creates an artifact and the other job copies the artifact in. Let's take a look at the artifact creation first. In the Options section of the pipeline, I'm giving explicit permission to the Read Artifact job so that it can copy any artifacts created by this job. I also have a Build Step that creates a simple text report. And at the end of the…