-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
2.2175.v76a_fff0a_2618
see https://github.com/jenkinsci/pipeline-graph-view-plugin/issues/220
Stage name and ForkScanner is used rather than passing flownodes around.
It just picks the first stage rather than the correct one.
This can only happen in matrix pipelines.
Regular declarative pipelines have this behaviour blocked:
20:04:25 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
20:04:25 WorkflowScript: 4: Duplicate stage name: "Skipped" @ line 4, column 5.
20:04:25 stages {
but matrix can have duplicates:
pipeline { agent none stages { stage('BuildAndTest') { matrix { agent any axes { axis { name 'PLATFORM' values 'linux', 'windows' } axis { name 'BROWSER' values 'firefox' } } stages { stage('Build') { when { branch 'testing' } steps { echo "Do Build for ${PLATFORM} - ${BROWSER}" } } } } } } }
Looks like BlueOcean didn't fully switch to using TagsAction and falls back to not built if nothing is set.
I'm a bit stumped on a fix here, jglick or dnusbaum any idea?
Best I can come up with is maybe some sort of ID can be added here:
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/c9d1c49f4e9db93535cab33ac0d2f45821b45eaa/pipeline-model-definition/src/main/resources/org/jenkinsci/plugins/pipeline/modeldefinition/ModelInterpreter.groovy#L302
If this was a running pipeline with regular Jenkins code it would be straightforward, but declarative makes this a lot harder =/