Unverified Commit cc8569f3 authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

Jenkinsfile: Correctly set pipeline status on a build failure.

Otherwise the pipeline cannot be meaningfully used as a validation
job, as it'd always return success, even upon encountering one or more
build failures.

* Jenkinsfile: In case a packaging target failed building, set the
build result to failure.

Change-Id: I47c8b09936b088b27a02173aa94a0adb0f04dcb4
parent 09a5cd14
...@@ -134,7 +134,7 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration" ...@@ -134,7 +134,7 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration"
node('linux-builder') { node('linux-builder') {
cleanWs() cleanWs()
unstash 'release-tarball' unstash 'release-tarball'
catchError(buildResult: 'SUCCESS', catchError(buildResult: 'FAILURE',
stageResult: 'FAILURE') { stageResult: 'FAILURE') {
sh """ sh """
tar xf *.tar.gz --strip-components=1 tar xf *.tar.gz --strip-components=1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment