Recall & Review
beginner
What is an artifact in Jenkins?
An artifact is a file or set of files produced by a Jenkins job that can be saved and used later, such as build outputs or reports.
Click to reveal answer
beginner
How can you share artifacts between two Jenkins jobs?
You can share artifacts by archiving them in the first job and then using the 'Copy Artifact' plugin in the second job to retrieve those files.
Click to reveal answer
beginner
Which Jenkins plugin is commonly used to copy artifacts from one job to another?
The 'Copy Artifact' plugin is used to copy artifacts between Jenkins jobs.
Click to reveal answer
beginner
What is the purpose of the 'Archive the artifacts' post-build action in Jenkins?
It saves the specified files from a job so they can be accessed later or copied to other jobs.
Click to reveal answer
intermediate
What information do you need to specify when configuring the 'Copy Artifact' step?
You need to specify the source project name and the criteria to select the build (like latest successful build) to copy artifacts from.
Click to reveal answer
Which Jenkins plugin allows copying artifacts between jobs?
✗ Incorrect
The Copy Artifact plugin is specifically designed to copy artifacts from one Jenkins job to another.
What must a job do to make its artifacts available for copying?
✗ Incorrect
Archiving artifacts saves them so other jobs can access or copy them.
When configuring 'Copy Artifact', which build selection method is commonly used?
✗ Incorrect
Selecting the latest successful build ensures you copy artifacts from a stable build.
If you want to copy artifacts from a job named 'BuildApp', what do you specify in the 'Copy Artifact' step?
✗ Incorrect
You specify the source project name to tell Jenkins where to copy artifacts from.
What happens if the source job has no archived artifacts when 'Copy Artifact' runs?
✗ Incorrect
If no artifacts are archived, the copy step cannot find files and will fail.
Explain the steps to copy artifacts from one Jenkins job to another.
Think about saving files first, then retrieving them.
You got /4 concepts.
Why is archiving artifacts important before copying them between jobs?
Consider what happens if files are not saved.
You got /4 concepts.