summaryrefslogtreecommitdiff
path: root/vars
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-26 19:40:12 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-26 19:40:12 +0100
commit277561ae2611ca7ad84b7bad0eec2c6be5f369a0 (patch)
tree39008705b3f3f4b99b500ec48d02acf883d900cc /vars
parent222a7d7f478bc61b2b6f56f77273fa23b31d8c82 (diff)
downloadvyos-build-277561ae2611ca7ad84b7bad0eec2c6be5f369a0.tar.gz
vyos-build-277561ae2611ca7ad84b7bad0eec2c6be5f369a0.zip
Jenkins: lib: move buildDiscarder settings to pipeline ~options
Diffstat (limited to 'vars')
-rw-r--r--vars/buildPackage.groovy11
1 files changed, 3 insertions, 8 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index 343ffc66..e14106db 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -21,12 +21,6 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
// - buildCmd: replace default build command "dpkg-buildpackage -uc -us -tc -b"
// with this custom version
- // Only keep the 10 most recent builds
- def projectProperties = [
- [$class: 'BuildDiscarderProperty',strategy: [$class: 'LogRotator', numToKeepStr: '10']],
- ]
-
- properties(projectProperties)
setDescription(description)
pipeline {
@@ -36,6 +30,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
skipDefaultCheckout()
timeout(time: 120, unit: 'MINUTES')
timestamps()
+ buildDiscarder(logRotator(numToKeepStr: '20'))
}
stages {
stage('Define Agent') {
@@ -126,8 +121,8 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
}
stage("Finalize") {
agent {
- label "ec2_amd64"
- }
+ label "ec2_amd64"
+ }
steps {
script {
// Unpack files for amd64