Add per-stage failure to Jenkins pipeline

This commit is contained in:
RichardG867
2021-11-13 14:02:17 -03:00
parent 185c34e885
commit e8881f6f25

4
.ci/Jenkinsfile vendored
View File

@@ -53,6 +53,7 @@ pipeline {
stages {
stage('Build Windows') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
node('windows') {
gitClone()
windowsBuild()
@@ -60,9 +61,11 @@ pipeline {
}
}
}
}
stage('Build Linux') {
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
node('debian') {
gitClone()
unixBuild()
@@ -70,6 +73,7 @@ pipeline {
}
}
}
}
/* If we're on the main jobs, trigger each of the downstream jobs. */
stage('Trigger downstream jobs') {