summaryrefslogtreecommitdiff
path: root/vars
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-05 10:10:22 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-05 10:10:22 +0200
commit889fc89e41f02aef856a2a53d68a540bb98e7d35 (patch)
tree9e3b392edb3ecae479745e134c84ee123933e788 /vars
parent8a6a04fe78dfea724aa807af8911f7210562e59a (diff)
downloadvyos-build-889fc89e41f02aef856a2a53d68a540bb98e7d35.tar.gz
vyos-build-889fc89e41f02aef856a2a53d68a540bb98e7d35.zip
Jenkins: lib: allos stashing of empty objects
If a build is skipped, we can not stash any object, this will trigger a build error that is invalid - as there is nothing to build.
Diffstat (limited to 'vars')
-rw-r--r--vars/buildPackage.groovy4
1 files changed, 2 insertions, 2 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index fde5e59a..cf1d5a81 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -80,7 +80,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
steps {
script {
cloneAndBuild(description, 'amd64', pkgList, buildCmd)
- stash includes: '**/*.deb', name: 'binary-amd64'
+ stash includes: '**/*.deb', name: 'binary-amd64', allowEmpty: true
}
}
post {
@@ -107,7 +107,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) {
steps {
script {
cloneAndBuild(description, 'arm64', pkgList, buildCmd)
- stash includes: '**/*arm64.deb', name: 'binary-arm64'
+ stash includes: '**/*arm64.deb', name: 'binary-arm64', allowEmpty: true
}
}
post {