Returning unstable if stage fails
All checks were successful
LXC-ImageBuilder/OpenSuse/pipeline/head This commit looks good
All checks were successful
LXC-ImageBuilder/OpenSuse/pipeline/head This commit looks good
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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-}
|
||||
|
||||
Reference in New Issue
Block a user