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

This commit is contained in:
2021-02-21 22:56:45 +01:00
parent 30a2f710e6
commit 3dac450946

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"
ImgVariantName=${ImgVariant#Default-} && ImgVariantName=${ImgVariantName#Extra-}
sudo $WORKSPACE/distrobuilder build-lxc Debian.yaml $WORKSPACE/REL/$ImgRelease-$ImgVariant/ -o image.release=$ImgRelease -o image.variant=$ImgVariantName