Recall & Review
beginner
What is the purpose of archiving artifacts in Jenkins?
Archiving artifacts in Jenkins saves important files from a build so you can access them later, like logs, reports, or compiled programs.
Click to reveal answer
beginner
How do you specify which files to archive in a Jenkins job?
You use a file pattern (like
**/*.jar) in the 'Archive the artifacts' post-build action to tell Jenkins which files to save.Click to reveal answer
intermediate
What happens if you archive artifacts with the pattern
target/*.jar but no files match?Jenkins will mark the build as failed or unstable depending on settings, because it expects files to archive but found none.
Click to reveal answer
beginner
Can archived artifacts be downloaded after the build completes?
Yes, archived artifacts are stored with the build and can be downloaded anytime from the build's page in Jenkins.
Click to reveal answer
beginner
Why is archiving artifacts useful in continuous integration?
It helps keep important build outputs safe, share them with others, and use them in later steps like deployment or testing.
Click to reveal answer
In Jenkins, which post-build action is used to save build files for later use?
✗ Incorrect
The 'Archive the artifacts' action saves specified files from the build for later access.
What file pattern would you use to archive all .zip files in any folder of the workspace?
✗ Incorrect
The pattern '**/*.zip' matches all .zip files in any folder recursively.
If no files match the archive pattern, what is a possible Jenkins build result?
✗ Incorrect
Jenkins may mark the build as failed or unstable if expected artifacts are missing.
Where can you find archived artifacts after a Jenkins build finishes?
✗ Incorrect
Archived artifacts are accessible from the build's page in the Jenkins web interface.
Why should you archive artifacts in a CI/CD pipeline?
✗ Incorrect
Archiving artifacts preserves important files like executables or reports for sharing or deployment.
Explain how to configure artifact archiving in a Jenkins freestyle job.
Think about the steps after the build completes.
You got /4 concepts.
Describe why archiving artifacts is important in continuous integration and deployment.
Consider what happens after a build finishes.
You got /4 concepts.