Open serdar-luminar opened 4 years ago
I think I see the same (but without any parallel steps). The script below marks both steps as failed, though build step should be marked as not run.
pipeline {
agent any
stages {
stage('clone') {
steps {
sh 'exit 1'
}
}
stage('build') {
steps {
echo '2'
}
}
}
}
When Jenkins declarative pipeline parallel build fails due to stage failure, rest of the skipped stages result marked as 'CompletedError' Skipped stage's result should be marked as 'SkippedFailure' (BuildStage.State.SkippedFailure) Because of this, whenever I look at the build errors, I see many stages counted as failed even thought there is only one stage fails the build. Steps to reproduce:
https://github.com/jenkinsci/github-autostatus-plugin/blob/07544fc6902af9a5519f16dec5504f4e3cd8bc18/src/main/java/org/jenkinsci/plugins/githubautostatus/model/BuildState.java