| I'm seeing the same behavior. Going by the documentation for parallel stages in scripted pipeline style, the code mentioned above should look something like:
node {
parallel 'one': { ... }, 'two': { ... }
}
However, with this syntax, /wfapi/describe would NOT display stages 'one' & 'two' (as they're not wrapped inside of a stage{} block) Workaround for me is to add a redundant stage{} block inside each of the parallel stage/branch blocks (Same as what Alexander Vukov is doing)
node {
parallel 'one': {
stage('one') { ... }
},
'two': {
stage('two') { ... }
}
}
|