.cci.jenkinsfile: add build discarder to rotate logs#4498
Merged
dustymabe merged 1 commit intocoreos:mainfrom Mar 19, 2026
Merged
.cci.jenkinsfile: add build discarder to rotate logs#4498dustymabe merged 1 commit intocoreos:mainfrom
dustymabe merged 1 commit intocoreos:mainfrom
Conversation
Limit build history to the 10 most recent runs or 30 days. This keeps PVC storage space down when there are long-running PRs in this repo with frequent force-pushes. Written by the Pipeline-Syntax Snippet Generator in the Jenkins UI.
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a buildDiscarder to the Jenkinsfile. The goal is to limit the build history to the 10 most recent runs or builds newer than 30 days, which will help manage storage space. The implementation uses the standard logRotator function and appears to be correctly configured. The changes are straightforward and I have no suggestions for improvement.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Limit build history to the 10 most recent runs or 30 days. This keeps PVC storage space down when there are long-running PRs in this repo with frequent force-pushes.
Written by the Pipeline-Syntax Snippet Generator in the Jenkins UI.
See coreos/fedora-coreos-tracker#2122
It's highly likely that when this PR merges, Jenkins will immediately rotate builds to keep the total number at 10 and also rotate builds that are older than 30 days. This will probably bring the PVC storage usage down even more and prevent us from having to manually clean things up in the future.
As an example, #4375 was previously consuming 6.8GB (27% of our total capacity) due to 157 builds. Under this new policy, that footprint would be capped at ~450MB.