Recall & Review
beginner
What is an artifact in Jenkins?
An artifact is a file or set of files produced by a Jenkins build, such as compiled code, reports, or logs, that can be saved and used later.
Click to reveal answer
beginner
Why do we need artifact retention policies in Jenkins?
To control how long build artifacts are kept, saving storage space and keeping Jenkins clean by deleting old or unnecessary files automatically.
Click to reveal answer
intermediate
How can you configure artifact retention in a Jenkins job?
By setting 'Discard old builds' in the job configuration and specifying how many builds or days to keep artifacts and builds.
Click to reveal answer
beginner
What happens if you do not set an artifact retention policy?
Artifacts and builds will be kept forever, which can use a lot of disk space and slow down Jenkins over time.
Click to reveal answer
intermediate
Can artifact retention policies be automated in Jenkins pipelines?
Yes, using pipeline scripts you can add steps to delete old artifacts or limit how many builds keep artifacts automatically.
Click to reveal answer
What is the main purpose of artifact retention policies in Jenkins?
✗ Incorrect
Artifact retention policies help manage disk space by removing old or unnecessary build artifacts.
Where do you configure artifact retention settings in a Jenkins freestyle job?
✗ Incorrect
The 'Discard old builds' section allows you to set how many builds and artifacts to keep.
What is a risk of not setting artifact retention policies?
✗ Incorrect
Without retention policies, artifacts accumulate and can fill disk space, impacting Jenkins performance.
Can artifact retention be controlled in Jenkins pipelines?
✗ Incorrect
Pipeline scripts can include steps to manage artifact retention automatically.
Which of these is NOT a typical retention policy setting in Jenkins?
✗ Incorrect
Jenkins retention policies do not usually limit artifact file size, but focus on build count or age.
Explain how artifact retention policies help maintain Jenkins performance and storage.
Think about what happens if old files are never deleted.
You got /4 concepts.
Describe the steps to set up artifact retention in a Jenkins freestyle job.
Look for the section that controls old build cleanup.
You got /4 concepts.