-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins ver. 2.164.1
Blue Ocean 1.21.0
I used the "Parallel Multiple Nodes" example from: https://jenkins.io/doc/pipeline/examples/#trigger-job-on-all-nodes.
Heres my code:
def labels = ['X', 'Y'] // labels for Jenkins node types we will build on
def builders = [:]
for (x in labels) {
def label = x // Need to bind the label variable before the closure - can't do 'for (label in labels)'
// Create a map to pass in to the 'parallel' step so we can fire all the builds at once
builders[label] = {
node(label) {
stage("SCM")
stage("Setup")
{ echo env.STAGE_NAME }stage("Build"){ echo env.STAGE_NAME }
stage("Host unitTest")
{ echo env.STAGE_NAME }stage("DUT unitTest"){ echo env.STAGE_NAME }
stage("QA tests")
{ echo env.STAGE_NAME }stage("Teardown"){ echo env.STAGE_NAME }
}
}
}
parallel builders
i expected that BlueOcean will show the progress of each node (in parallel) but instead the progress is under the node name and can be viewed only when clicking the node name . ( see attached screenshot).
I expected the following structure:
start--XSCMSetupBuild–-Host unitTest–-DUT unitTest–QA tests–Teardown-–End
| |
Y-SCMSetupBuild–-Host unitTest–-DUT unitTest–QA tests–Teardown-