-
Bug
-
Resolution: Unresolved
-
Major
-
None
If you have a main job that triggers a build and wait for the result, you should show the downstream job in the stage, but is not on every case if you use the parallel step, and it never shows if you use the parallel directive in a declarative pipeline
MainJob 1
pipeline { agent any stages { stage('Run Tests') { steps { parallel( 'Stage 1': {build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '3')]}, 'Stage 2': {build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '4')]} ) } } } }
MainJob 2
pipeline { agent any stages { stage('Run Tests') { parallel { stage('Stage 1') { steps { build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '1')] } } stage('Stage 2') { steps { build job: 'downstreamJob', parameters: [string(name: 'VAR', value: '3')] } } } } } }
Downstream job
pipeline { agent any parameters { string(name: 'VAR', defaultValue: "1") } stages { stage('Downstream') { steps { echo "NOOP" } } } }
[JENKINS-56562] Parallel downstream jobs are not linked correctly
Attachment | New: mainJob-stage-1-ok.png [ 46402 ] | |
Attachment | New: mainJob-stage-2-ok.png [ 46403 ] |
Attachment | New: mainJob-fail-2.png [ 46404 ] | |
Attachment | New: mainJob-fail.png [ 46405 ] |
Attachment | New: mainJob-fail-2-1.png [ 46408 ] | |
Attachment | New: mainJob-fail-2-2.png [ 46409 ] | |
Attachment | New: mainJob-fail-2-3.png [ 46410 ] |
Attachment | New: Screenshot 2019-07-25 at 12.00.40.png [ 48103 ] | |
Attachment | New: Screenshot 2019-07-25 at 12.01.14.png [ 48104 ] |
Attachment | New: har-ok.json [ 48105 ] | |
Attachment | New: fail-har.json [ 48106 ] |
Assignee | Original: Andrew Bayer [ abayer ] |