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

20
.ci/Jenkinsfile vendored
View File

@@ -53,20 +53,24 @@ pipeline {
stages {
stage('Build Windows') {
steps {
node('windows') {
gitClone()
windowsBuild()
saveArtifacts()
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
node('windows') {
gitClone()
windowsBuild()
saveArtifacts()
}
}
}
}
stage('Build Linux') {
steps {
node('debian') {
gitClone()
unixBuild()
saveArtifacts()
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
node('debian') {
gitClone()
unixBuild()
saveArtifacts()
}
}
}
}