Returning unstable if stage fails
All checks were successful
LXC-ImageBuilder/OpenSuse/pipeline/head This commit looks good

This commit is contained in:
2021-02-21 22:56:42 +01:00
parent 76bc03d537
commit cfc98bffb8

2
Jenkinsfile vendored
View File

@@ -46,7 +46,7 @@ pipeline {
env.ImgRelease = ImgRelease
env.ImgVariant = ImgVariant
stage('Build image') {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh '''echo "$(date) Do Build for $ImgRelease - $ImgVariant"
if [ $ImgRelease = "tumbleweed" ] ; then YamlVer=Tumbleweed ; else YamlVer=Leap ; fi
ImgVariantName=${ImgVariant#Default-} && ImgVariantName=${ImgVariantName#Extra-}