Add per-stage failure to Jenkins pipeline
This commit is contained in:
20
.ci/Jenkinsfile
vendored
20
.ci/Jenkinsfile
vendored
@@ -53,20 +53,24 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Build Windows') {
|
stage('Build Windows') {
|
||||||
steps {
|
steps {
|
||||||
node('windows') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
gitClone()
|
node('windows') {
|
||||||
windowsBuild()
|
gitClone()
|
||||||
saveArtifacts()
|
windowsBuild()
|
||||||
|
saveArtifacts()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build Linux') {
|
stage('Build Linux') {
|
||||||
steps {
|
steps {
|
||||||
node('debian') {
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
||||||
gitClone()
|
node('debian') {
|
||||||
unixBuild()
|
gitClone()
|
||||||
saveArtifacts()
|
unixBuild()
|
||||||
|
saveArtifacts()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user