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

Non-named parameters not passed to pipeline subjobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins 2.7

      See the below Pipeline script:
      {{
      build(
      job: "pipeline_subjob2",
      parameters: [
      [$class: 'StringParameterValue', name: 'foo', value: 'bar']
      ]
      )
      }}

      If 'pipeline_subjob2' has a parameter 'foo', this will work as intended ('foo': 'bar' will be passed). However, if 'pipeline_subjob2' does not have a parameter 'foo', it will not be passed from the pipeline.

      This worked previously (in Jenkins 2.0) and I hope the change is not intentional.

            jglick Jesse Glick
            mathiasdm Mathias De Maré
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: