Add per-stage failure to Jenkins pipeline
This commit is contained in:
4
.ci/Jenkinsfile
vendored
4
.ci/Jenkinsfile
vendored
@@ -53,6 +53,7 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build Windows') {
|
stage('Build Windows') {
|
||||||
steps {
|
steps {
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
node('windows') {
|
node('windows') {
|
||||||
gitClone()
|
gitClone()
|
||||||
windowsBuild()
|
windowsBuild()
|
||||||
@@ -60,9 +61,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build Linux') {
|
stage('Build Linux') {
|
||||||
steps {
|
steps {
|
||||||
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
node('debian') {
|
node('debian') {
|
||||||
gitClone()
|
gitClone()
|
||||||
unixBuild()
|
unixBuild()
|
||||||
@@ -70,6 +73,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If we're on the main jobs, trigger each of the downstream jobs. */
|
/* If we're on the main jobs, trigger each of the downstream jobs. */
|
||||||
stage('Trigger downstream jobs') {
|
stage('Trigger downstream jobs') {
|
||||||
|
|||||||
Reference in New Issue
Block a user