From c4bce3ae853d56c188c1793ab0f18ea00f453228 Mon Sep 17 00:00:00 2001 From: Michael Armijo Date: Wed, 18 Mar 2026 15:34:18 -0600 Subject: [PATCH] .cci.jenkinsfile: add build discarder to rotate logs 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. --- .cci.jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.cci.jenkinsfile b/.cci.jenkinsfile index df2b980f93..08b63a6e0a 100644 --- a/.cci.jenkinsfile +++ b/.cci.jenkinsfile @@ -2,7 +2,14 @@ properties([ // abort previous runs when a PR is updated to save resources - disableConcurrentBuilds(abortPrevious: true) + disableConcurrentBuilds(abortPrevious: true), + + // only keep the last 10 builds + // builds older than 30 days are also rotated out + buildDiscarder(logRotator( + numToKeepStr: '10', + daysToKeepStr: '30' + )) ]) // Grab a decent amount of memory/cpu