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

Parameterized Trigger Plugin setting is not retained: "Use files in matrix child builds"

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      This applies to Parameterized Trigger Plugin 2.24 and Jenkins 1.549.

      When the checkbox for "Use files in matrix child builds" is selected, and the Jenkins job is saved, the setting is always set to "false" in the job config.xml. The same issue occurs with the "Only files in exact child builds" setting. Here is the XML from the config.xml after the job is saved when both of these boxes are checked:

          <hudson.plugins.parameterizedtrigger.BuildTrigger plugin="parameterized-trigger@2.24">
            <configs>
              <hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
                <configs>
                  <hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
                    <properties>INFO REMOVED</properties>
                  </hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
                  <hudson.plugins.parameterizedtrigger.FileBuildParameters>
                    <propertiesFile>downstream.txt</propertiesFile>
                    <failTriggerOnMissing>true</failTriggerOnMissing>
                    <useMatrixChild>false</useMatrixChild>
                    <onlyExactRuns>false</onlyExactRuns>
                  </hudson.plugins.parameterizedtrigger.FileBuildParameters>
                </configs>
                <projects>INFO REMOVED</projects>
                <condition>SUCCESS</condition>
                <triggerWithNoParameters>false</triggerWithNoParameters>
              </hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
            </configs>
          </hudson.plugins.parameterizedtrigger.BuildTrigger>
      

      Here's a screenshot of the UI:

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          Sorry for my so elementary error...
          Made a pull request to fix: https://github.com/jenkinsci/parameterized-trigger-plugin/pull/65

          Show
          ikedam ikedam added a comment - Sorry for my so elementary error... Made a pull request to fix: https://github.com/jenkinsci/parameterized-trigger-plugin/pull/65
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/parameterizedtrigger/test/FileBuildTriggerConfigTest.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/6b4bb2f007ad9a87548dc579b2b70ed9b56c3af6
          Log:
          JENKINS-22705 Added a test to reproduce JENKINS-22705.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/parameterizedtrigger/test/FileBuildTriggerConfigTest.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/6b4bb2f007ad9a87548dc579b2b70ed9b56c3af6 Log: JENKINS-22705 Added a test to reproduce JENKINS-22705 .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/FileBuildParameters.java
          src/main/resources/hudson/plugins/parameterizedtrigger/FileBuildParameters/config.jelly
          src/test/java/hudson/plugins/parameterizedtrigger/test/FileBuildTriggerConfigTest.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/4a85baec78a91d42e85901e978a8c7f356321e97
          Log:
          [FIXED JENKINS-22705] Fixed JENKINS-22705: useMatrixChild in FileBuildParameters cannot be configured at all.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/parameterizedtrigger/FileBuildParameters.java src/main/resources/hudson/plugins/parameterizedtrigger/FileBuildParameters/config.jelly src/test/java/hudson/plugins/parameterizedtrigger/test/FileBuildTriggerConfigTest.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/4a85baec78a91d42e85901e978a8c7f356321e97 Log: [FIXED JENKINS-22705] Fixed JENKINS-22705 : useMatrixChild in FileBuildParameters cannot be configured at all.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/FileBuildParameters.java
          src/main/resources/hudson/plugins/parameterizedtrigger/FileBuildParameters/config.jelly
          src/test/java/hudson/plugins/parameterizedtrigger/test/FileBuildTriggerConfigTest.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/6ffdde86aefc33e2f5feb0142437b6ae36a40cb6
          Log:
          Merge pull request #65 from ikedam/feature/JENKINS-22705_FixBadParameterName

          JENKINS-22705 Fixed "Use files in matrix child builds" to work

          Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/3ac46d0b3fb9...6ffdde86aefc

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/parameterizedtrigger/FileBuildParameters.java src/main/resources/hudson/plugins/parameterizedtrigger/FileBuildParameters/config.jelly src/test/java/hudson/plugins/parameterizedtrigger/test/FileBuildTriggerConfigTest.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/6ffdde86aefc33e2f5feb0142437b6ae36a40cb6 Log: Merge pull request #65 from ikedam/feature/ JENKINS-22705 _FixBadParameterName JENKINS-22705 Fixed "Use files in matrix child builds" to work Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/3ac46d0b3fb9...6ffdde86aefc
          Hide
          ikedam ikedam added a comment -

          Release fix in 2.25.
          It will be available in a day.
          Please try that.

          Show
          ikedam ikedam added a comment - Release fix in 2.25. It will be available in a day. Please try that.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              kayers Kenny Ayers
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: