diff options
-rw-r--r-- | vars/buildPackage.groovy | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy index cf1d5a81..c5906d0b 100644 --- a/vars/buildPackage.groovy +++ b/vars/buildPackage.groovy @@ -124,14 +124,16 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { } steps { script { - // Unpack files for amd64 - unstash 'binary-amd64' - - // Unpack files for arm64 IF they exist + // Unpack files for amd64 and arm64 if packages got build try { + unstash 'binary-amd64' unstash 'binary-arm64' } catch (e) { - print "Unstash arm64 failed, ignoring" + print "Unstash failed, ignoring" + println(e.toString()) + currentBuild.result = 'SUCCESS' + // return here instead of throwing error to keep the build "green" + return } if (isCustomBuild()) { |