| I do not know how Blue Ocean works in any detail. My comment was very much about the terminology. None of the examples given so far in this issue are using actual Scripted syntax—they all start with pipeline, which is Declarative syntax, and so all bets are off. At any rate, the closest Scripted analogue I can come up with for the original Declarative script would be
parallel 'Build and Test Linux': {
stage("Build (Linux)") {
echo "Inside for loop 1"
}
stage("Test (Linux)") {
echo "Inside for loop 2"
}
}, 'Build and Test Windows': {
stage("Build (Windows)") {
echo "Inside for loop 3"
}
stage("Test (Windows)") {
echo "Inside for loop 4"
}
}
which indeed also fails to display the stages—only the branches are shown. (Similarly when the whole script is enclosed in stage('Build and Test') {…}.)So I would consider that a bug in Blue Ocean: it should display a Pipeline build with a structure that its visualization layer supports, regardless of the syntax used to run that build. Perhaps there is some workaround that a B.O. developer could explain. |