4

I have existing Jenkins (2.90) jobs that are taking up disk space. When I enable the "Discard Old Builds" option I don't see any cleanup going on in the folder on the builds older than 7 days.

When does Jenkins do this cleanup? Or does it only apply for new builds after I apply the setting?

Jenkins discard build option

1 Answer 1

5

Per the Jenkins documentation:

Cleanup per project/job is performed after that job runs.

As of v2.221, cleanup will also periodically run using the new Global Build Discarders (even if a job has not recently been run).

Source.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.