Overview - Artifact retention policies
What is it?
Artifact retention policies are rules that decide how long build outputs, called artifacts, are kept in Jenkins. Artifacts are files like compiled programs or reports created during a build. These policies help manage storage by automatically deleting old or unnecessary artifacts. This keeps the Jenkins environment clean and efficient.
Why it matters
Without artifact retention policies, Jenkins would store every artifact forever, quickly using up disk space and slowing down the system. This can cause failures or delays in builds and increase maintenance work. Proper retention policies save storage, reduce costs, and keep the build system reliable and fast.
Where it fits
Before learning artifact retention policies, you should understand Jenkins basics like jobs, builds, and artifacts. After this, you can explore advanced Jenkins maintenance, storage optimization, and pipeline automation techniques.