From 9a26840d5c76893c3b805b17c62079aeded90fc9 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 2 Sep 2019 12:08:58 +0200 Subject: [PATCH] Exit with a special exit code on failure in the last stage. This can be used in jenkins to mark the build "unstable" instead of "failed". --- tools/jenkins/Coverage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/jenkins/Coverage.sh b/tools/jenkins/Coverage.sh index c9bb23bdae..ae1f81bcba 100755 --- a/tools/jenkins/Coverage.sh +++ b/tools/jenkins/Coverage.sh @@ -116,4 +116,4 @@ if [ -f Testing/TAG ] ; then java -jar /home/ci/codacy-coverage-reporter-*-assembly.jar report -l C -f -r $BUILDFOLDER/xml_coverage.xml java -jar /home/ci/codacy-coverage-reporter-*-assembly.jar report -l CPP -f -r $BUILDFOLDER/xml_coverage.xml fi -fi +fi || exit 42 -- 2.20.1