From d8d53de1311e1cb4fc9361afb27e5932445a1f95 Mon Sep 17 00:00:00 2001 From: Fred G Date: Fri, 27 Sep 2024 18:13:01 +0200 Subject: [PATCH] Reduce number of retained builds and retained builds with artifacts In order to save disk space, the number of builds to keep with artifacts is be limited to 1 for verification builds and 5 for the master branch. For all branches the number of retained builds is limited to 5. --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0a9042469..a755cabc3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { options { timeout(time: 45, unit: 'MINUTES') - buildDiscarder(logRotator(numToKeepStr:'10')) + buildDiscarder(logRotator(numToKeepStr:'5', artifactNumToKeepStr: 'master'.equals(env.BRANCH_NAME) ? '5' : '1' )) disableConcurrentBuilds(abortPrevious: true) timestamps() }