Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Exit with a special exit code on failure in the last stage.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 2 Sep 2019 10:08:58 +0000 (12:08 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 2 Sep 2019 10:08:58 +0000 (12:08 +0200)
This can be used in jenkins to mark the build "unstable" instead of "failed".

tools/jenkins/Coverage.sh

index c9bb23b..ae1f81b 100755 (executable)
@@ -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
      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