From cfc98bffb89e0f9c121fb5fe17783dfc5b3f3975 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Sun, 21 Feb 2021 22:56:42 +0100 Subject: [PATCH] Returning unstable if stage fails --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 27960ae..2c92daa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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-}