Skip to content

Commit 486c64b

Browse files
marmijodustymabe
authored andcommitted
.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.
1 parent e117447 commit 486c64b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.cci.jenkinsfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22

33
properties([
44
// abort previous runs when a PR is updated to save resources
5-
disableConcurrentBuilds(abortPrevious: true)
5+
disableConcurrentBuilds(abortPrevious: true),
6+
7+
// only keep the last 10 builds
8+
// builds older than 30 days are also rotated out
9+
buildDiscarder(logRotator(
10+
numToKeepStr: '10',
11+
daysToKeepStr: '30'
12+
))
613
])
714

815
// Grab a decent amount of memory/cpu

0 commit comments

Comments
 (0)