Skip to content

Commit

Permalink
Reduce number of retained builds and retained builds with artifacts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fredg02 authored and HannesWell committed Sep 28, 2024
1 parent 0e602d2 commit 193f9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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()
}
Expand Down

0 comments on commit 193f9b0

Please sign in to comment.