0
0
Jenkinsdevops~5 mins

Archiving artifacts in Jenkins - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AArchive the artifacts
BPublish JUnit test result report
CTrigger parameterized build
DClean workspace
What file pattern would you use to archive all .zip files in any folder of the workspace?
A**/*.zip
B*.zip
Czip/**
D*/zip
If no files match the archive pattern, what is a possible Jenkins build result?
ANot built
BSuccess
CAborted
DFailure or unstable
Where can you find archived artifacts after a Jenkins build finishes?
AIn the Jenkins system logs
BIn the workspace folder only
COn the build's page in Jenkins UI
DIn the Jenkins global configuration
Why should you archive artifacts in a CI/CD pipeline?
ATo delete build files automatically
BTo keep important build outputs for later use
CTo speed up the build process
DTo prevent builds from running
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.