From 889fc89e41f02aef856a2a53d68a540bb98e7d35 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 5 Jun 2021 10:10:22 +0200 Subject: 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. --- vars/buildPackage.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vars/buildPackage.groovy') 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 { -- cgit v1.2.3