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

          Code changed in jenkins
          User: Antonio Muñiz
          Path:
          src/main/java/hudson/matrix/MatrixChildParametersAction.java
          src/main/java/hudson/matrix/MatrixConfiguration.java
          http://jenkins-ci.org/commit/matrix-project-plugin/c684cc64bc16f37d45b3b704eab1324c46dd2868
          Log:
          JENKINS-34758 Parameters visibility in child builds (SECURITY-170)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/hudson/matrix/MatrixChildParametersAction.java src/main/java/hudson/matrix/MatrixConfiguration.java http://jenkins-ci.org/commit/matrix-project-plugin/c684cc64bc16f37d45b3b704eab1324c46dd2868 Log: JENKINS-34758 Parameters visibility in child builds (SECURITY-170)

          Code changed in jenkins
          User: Antonio Muñiz
          Path:
          src/test/java/hudson/matrix/MatrixProjectTest.java
          http://jenkins-ci.org/commit/matrix-project-plugin/d3478a4e052c2385f3b3a32953cfa5f22eb187ce
          Log:
          JENKINS-34758 Test for SECURITY-170

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/test/java/hudson/matrix/MatrixProjectTest.java http://jenkins-ci.org/commit/matrix-project-plugin/d3478a4e052c2385f3b3a32953cfa5f22eb187ce Log: JENKINS-34758 Test for SECURITY-170

          Code changed in jenkins
          User: Antonio Muñiz
          Path:
          src/main/java/hudson/matrix/MatrixChildParametersAction.java
          src/main/java/hudson/matrix/MatrixConfiguration.java
          src/main/resources/hudson/matrix/MatrixChildParametersAction/index.jelly
          http://jenkins-ci.org/commit/matrix-project-plugin/55d2a6cdb62601ec51dbeff8d7ad20f6bb726455
          Log:
          JENKINS-34758 Parameters must be shown in the child build page

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Antonio Muñiz Path: src/main/java/hudson/matrix/MatrixChildParametersAction.java src/main/java/hudson/matrix/MatrixConfiguration.java src/main/resources/hudson/matrix/MatrixChildParametersAction/index.jelly http://jenkins-ci.org/commit/matrix-project-plugin/55d2a6cdb62601ec51dbeff8d7ad20f6bb726455 Log: JENKINS-34758 Parameters must be shown in the child build page

          Code changed in jenkins
          User: Oliver Gondža
          Path:
          src/main/java/hudson/matrix/MatrixChildParametersAction.java
          src/main/java/hudson/matrix/MatrixConfiguration.java
          src/test/java/hudson/matrix/MatrixProjectTest.java
          http://jenkins-ci.org/commit/matrix-project-plugin/d9e5c847afef3928441bdb91df37f764ea6617fd
          Log:
          Merge pull request #36 from amuniz/JENKINS-34758-fix

          JENKINS-34758 Parameters visibility in child builds

          Compare: https://github.com/jenkinsci/matrix-project-plugin/compare/510aa05c7909...d9e5c847afef

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: src/main/java/hudson/matrix/MatrixChildParametersAction.java src/main/java/hudson/matrix/MatrixConfiguration.java src/test/java/hudson/matrix/MatrixProjectTest.java http://jenkins-ci.org/commit/matrix-project-plugin/d9e5c847afef3928441bdb91df37f764ea6617fd Log: Merge pull request #36 from amuniz/ JENKINS-34758 -fix JENKINS-34758 Parameters visibility in child builds Compare: https://github.com/jenkinsci/matrix-project-plugin/compare/510aa05c7909...d9e5c847afef

          Released as 1.7

          Antonio Muñiz added a comment - Released as 1.7

          Issue JENKINS-35330 describes that the content of "List subversion tags and more" and branch parameters of the Git plugin are not passed to the child jobs (I.e., as "null"). I think, the the applied fix should be revised for this types of parameters. Therefore, I've setup a link between these two issues and re-opened this issue ...

          Best regards from Salzburg,
          Markus

          GMC Software Development B&R Corporate added a comment - - edited Issue JENKINS-35330 describes that the content of "List subversion tags and more" and branch parameters of the Git plugin are not passed to the child jobs (I.e., as "null"). I think, the the applied fix should be revised for this types of parameters. Therefore, I've setup a link between these two issues and re-opened this issue ... Best regards from Salzburg, Markus

          Reassigning, after it got assigned to me by mistake.

          Manish Jawarilal added a comment - Reassigning, after it got assigned to me by mistake.

          Hi Team,

          Any update on this issue. Am stuck with the same problem. Jenkins version: Jenkins ver. 1.651.3

          Manish Jawarilal added a comment - Hi Team, Any update on this issue. Am stuck with the same problem. Jenkins version:  Jenkins ver. 1.651.3

          I believe this is still the case on 2.176.2.

          javydreamercsw added a comment - I believe this is still the case on 2.176.2.

          Owen Mehegan added a comment -

          This bug was fixed and released in matrix-project 1.7 back in 2016. If you are seeing a similar issue, please open a new jira.

          Owen Mehegan added a comment - This bug was fixed and released in matrix-project 1.7 back in 2016. If you are seeing a similar issue, please open a new jira.

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

              Created:
              Updated:
              Resolved: