Status: Open (View Workflow)
We have a pipeline like this:
A ---> B -manual-> D \--> C -manual-> D
Note that job B and C both has a manual trigger for D, or in other terms, D has several upstream dependencies.
The manual trigger button in top row works ok, but not the one in the second. Looking at the generated html of the manual trigger button of D in the second row in the pipeline view:
buildPipeline.triggerBuild(1559225617, 'A', 66, 'D', )
You see that the upstream job is A not B as it should be.
It seems to me that the calculation of the parameters is done from the downstream job and up, taking the first job in the list of upstream jobs in both cases. The thinking is: 'trigger this job and look in upstream for params'.
I think it has to be done the other way around. You could imagine this as having the trigger button between the jobs instead of on the downstream job, thinking: 'continue the pipeline, trigger the downstream jobs with params from upstream'. After all, you design your pipeline that way: 'after B do C with these params…', not 'what are the dependencies of C?'
Plugin Version: 1.3.5
- is related to
JENKINS-21527 getting incorrect parameter values from upstream job when a manual downstream job is shared by multiple upstream jobs.
JENKINS-21527is the same underlying problem.