Skip to content

Commit 9263d68

Browse files
committed
jobs: consistently discard old builds
Most of our jobs enable build discard, but not all. Turn it on consistently across the board. Use the established setting of 100 for most of them, except for the garbage-collection and release jobs whose logs have more value.
1 parent 06f205b commit 9263d68

File tree

7 files changed

+29
-1
lines changed

7 files changed

+29
-1
lines changed

jenkins/config/seed.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
defaultValue: false,
1919
description: 'Whether to redefine existing jobs (make sure to rerun all jobs with triggers to re-activate them)'),
2020
]),
21+
buildDiscarder(logRotator(
22+
numToKeepStr: '100',
23+
artifactNumToKeepStr: '100'
24+
)),
2125
durabilityHint('PERFORMANCE_OPTIMIZED')
2226
])
2327

jobs/build-development.Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ node {
77

88
properties([
99
pipelineTriggers(pipeutils.get_push_trigger()),
10+
buildDiscarder(logRotator(
11+
numToKeepStr: '100',
12+
artifactNumToKeepStr: '100'
13+
)),
1014
durabilityHint('PERFORMANCE_OPTIMIZED')
1115
])
1216

jobs/build-mechanical.Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ properties([
1010
// run every 24h only for now
1111
cron("H H * * *")
1212
]),
13+
buildDiscarder(logRotator(
14+
numToKeepStr: '100',
15+
artifactNumToKeepStr: '100'
16+
)),
1317
durabilityHint('PERFORMANCE_OPTIMIZED')
1418
])
1519

jobs/cloud-replicate.Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ properties([
3030
defaultValue: "",
3131
trim: true)
3232
] + pipeutils.add_hotfix_parameters_if_supported()),
33+
buildDiscarder(logRotator(
34+
numToKeepStr: '100',
35+
artifactNumToKeepStr: '100'
36+
)),
3337
durabilityHint('PERFORMANCE_OPTIMIZED')
3438
])
3539

jobs/fix-build.Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ properties([
3535
defaultValue: "",
3636
trim: true)
3737
] + pipeutils.add_hotfix_parameters_if_supported()),
38+
buildDiscarder(logRotator(
39+
numToKeepStr: '100',
40+
artifactNumToKeepStr: '100'
41+
)),
3842
durabilityHint('PERFORMANCE_OPTIMIZED')
3943
])
4044

jobs/garbage-collection.Jenkinsfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ properties([
1919
booleanParam(name: 'DRY_RUN',
2020
defaultValue: true,
2121
description: 'Only print what would be deleted')
22-
])
22+
]),
23+
buildDiscarder(logRotator(
24+
numToKeepStr: '200',
25+
artifactNumToKeepStr: '200'
26+
))
2327
])
2428

2529
def cosa_img = 'quay.io/coreos-assembler/coreos-assembler:main'

jobs/release.Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ properties([
4040
defaultValue: "",
4141
trim: true)
4242
] + pipeutils.add_hotfix_parameters_if_supported()),
43+
buildDiscarder(logRotator(
44+
numToKeepStr: '200',
45+
artifactNumToKeepStr: '200'
46+
)),
4347
durabilityHint('PERFORMANCE_OPTIMIZED')
4448
])
4549

0 commit comments

Comments
 (0)