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

Parameters are not passed to child jobs in multi-configuration projects

      Parameters passed to a multi-configuration job are, apparently, filtered out before being passed through to child builds. This problem does not exhibit on freestyle jobs.

      Steps to reproduce:

      1. Create a multi-configuration job
      2. Add a single parameter named SERIAL
      3. Add a single axis (of any name)
      4. Add an "Execute shell" task with "set -eux; echo $SERIAL"
      5. Run the job, setting a SERIAL
      6. Observe failure

      This appears to have been introduced in 1.651.2 (presumably as part of the parameter filtering changes).

          [JENKINS-34758] Parameters are not passed to child jobs in multi-configuration projects

          Daniel Watkins created issue -
          Christopher Orr made changes -
          Component/s New: matrix-project-plugin [ 18765 ]
          Component/s Original: core [ 15593 ]
          Daniel Watkins made changes -
          Labels New: lts
          Ian Norton made changes -
          Link New: This issue is duplicated by JENKINS-34787 [ JENKINS-34787 ]
          Ian Norton made changes -
          Priority Original: Critical [ 2 ] New: Blocker [ 1 ]
          Christopher Orr made changes -
          Labels Original: lts New: lts security-170
          Hidden Maverick made changes -
          Comment [ I have confirmed that this issue also affects jobs that contain promoted builds using the latest Promoted Builds Plugin, with Jenkins 1.651.2 running on CentOS 7.2.1511. The build parameters defined in a job are not passed to the promoted builds, causing the job to break.

          Downgrading to Jenkins 1.651.1 allowed the affected jobs to function again. ]
          Hidden Maverick made changes -
          Comment [ Thanks for letting me know. I'll redirect my issue to the appropriate bug report. ]
          Christopher Orr made changes -
          Link New: This issue is duplicated by JENKINS-34801 [ JENKINS-34801 ]
          Aaron D. Marasco made changes -
          Remote Link New: This issue links to "Tracking of all plugins affected by SECURITY-170 (Web Link)" [ 14311 ]
          Daniel Beck made changes -
          Link New: This issue is duplicated by JENKINS-34865 [ JENKINS-34865 ]

            amuniz Antonio Muñiz
            odd_bloke Daniel Watkins
            Votes:
            29 Vote for this issue
            Watchers:
            43 Start watching this issue

              Created:
              Updated:
              Resolved: