Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43087

Add possibility to pass unspecified job params in pipeline build step (or affect triggered build ENV)

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Major 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.

       

            Unassigned Unassigned
            jakubjosef Jakub Josef
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: