The issue occurs in both BlueOcean as well as the Pipeline Graph View. It is replicable with both scripted and declarative pipelines, so I must be missing something really obvious.
In short, the issue is that a parallel stage’s status does get updated (in the UI) until all the parallel stages are complete. I have included a very simple example below. In the example, I would expect ‘Stage A’ to be shown as unstable as soon as it completes and then ‘Stage B’ would also be shown as unstable once it completes. In actuality, when ‘Stage A’ is complete, it shows as ‘Successful’ at first. Then, once ‘Stage B’ completes, both stages flip to showing as unstable.
Any thoughts as to how to resolve this issue or why it occurs? Thanks!
parallel(
"StageA": {
node {
sleep(time:2,unit:"SECONDS")
catchError(stageResult:"UNSTABLE",buildResult:"SUCCESS")
{
bat 'EXIT 1'
}
}
},
"StageB": {
node {
sleep(time:20,unit:"SECONDS")
catchError(stageResult:"UNSTABLE",buildResult:"SUCCESS")
{
bat 'EXIT 1'
}
}
}
)