-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
With the code below, the catchError statement in the WIndows parallel branch causes the pipeline to wrongly go through the post--failure step in the LINUX branch
pipeline {
agent any
stages {
stage('Build') {
parallel {
stage('LINUX') {
stages {
stage("Clean") {
steps
}
stage("Compile") {
steps
post {
failure
}
}
}
}
stage('Windows') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE')
}
post {
failure
}
}
}
}
stage('Next') {
steps
}
}
}