-
Improvement
-
Resolution: Not A Defect
-
Major
-
None
-
Jenkins 2.49
all plugins latest
It would by nice if you can pass extra params in build pipeline step, i want to pass params from one pipeline to another and these params are not defined in pipeline parameters.
Our case:
We triggering a gating job pipeline from Gerrit, so triggered job get's GERRIT_* parameters automagically. In this pipeline we want to trigger another pipeline which needs GERRIT_* params as well. But we cannot pass GERRIT_* parameters by code lower because those parameters are undefined in triggered pipeline.
build(job: "testJob", parameters: [ [$class: 'StringParameterValue', name: 'GERRIT_REFSPEC', value: "2485/12"], ...
Passing undefined variables produce no error.
Another option is add possibility to affect triggered build ENV.