summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-26 14:17:10 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-26 15:40:35 +0100
commit3a538c48545dc9f8284165cab398cb940ac626af (patch)
treecf8747e636e7138cf3e7ec6adb171922045b18fd /Jenkinsfile
parentc1e3194d7a96fc183f6c1a88a6c701b62b5b55b0 (diff)
downloadvyos-build-3a538c48545dc9f8284165cab398cb940ac626af.tar.gz
vyos-build-3a538c48545dc9f8284165cab398cb940ac626af.zip
Jenkins: keep 10 most recent builds
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index dbc18d2b..3eaa5fe8 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -62,9 +62,9 @@ def setDescription() {
item.save()
}
-/* Only keep the 10 most recent builds. */
+// Only keep the 10 most recent builds
def projectProperties = [
- [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '1']],
+ [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '10']],
]
properties(projectProperties)