Skip to content

Commit

Permalink
ci: discard old builds
Browse files Browse the repository at this point in the history
Until now builds were kept forever or until manual removal. That
caused an issue with running out of space occasionally.

With this change all builds older than 30 days are discarded.
The second limit removes oldest builds to keep the history
up to 70 builds.

Reviewed-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
  • Loading branch information
thalman authored and pbrezina committed Feb 15, 2022
1 parent c41cc16 commit 3935e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ def notification = new Notification(
on_demand
)

this.properties([
buildDiscarder(logRotator(daysToKeepStr: '30', numToKeepStr: '70')),
])

try {
stage('Get system list') {
node('master') {
Expand Down

0 comments on commit 3935e89

Please sign in to comment.