diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-26 14:17:10 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-26 15:40:35 +0100 |
commit | 3a538c48545dc9f8284165cab398cb940ac626af (patch) | |
tree | cf8747e636e7138cf3e7ec6adb171922045b18fd | |
parent | c1e3194d7a96fc183f6c1a88a6c701b62b5b55b0 (diff) | |
download | vyos-build-3a538c48545dc9f8284165cab398cb940ac626af.tar.gz vyos-build-3a538c48545dc9f8284165cab398cb940ac626af.zip |
Jenkins: keep 10 most recent builds
-rw-r--r-- | Jenkinsfile | 4 |
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) |