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

Can't use in combination with rebuild and parameterized build trigger

    Details

    • Similar Issues:

      Description

      a Matrix job M is set with combinations parameter
      it uses parameterized build trigger to run job J as a downstream
      rendering job J "parameters" page fails, as [value page](https://github.com/jenkinsci/matrix-combinations-plugin/blob/master/src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/value.groovy) expect the current project to be the MatrixProject which defined the parameter.
      MatrixCombinationsParameterValue contains all necessary informations (confs and values) so there's no need to rely on the MatrixProject to render. Same for [rebuild](https://github.com/jenkinsci/matrix-combinations-plugin/blob/master/src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/rebuild.groovy)

        Attachments

          Activity

          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/matrix-combinations-plugin/pull/10
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValueTest.java
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsRebuildParameterProviderTest.java
          http://jenkins-ci.org/commit/matrix-combinations-plugin/6dcc532402ffb0919f5639b83acd17d77a9a670a
          Log:
          JENKINS-27233 Added tests to reproduce JENKINS-27233, exceptions in rebuild pages with non-matrix projects.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValueTest.java src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsRebuildParameterProviderTest.java http://jenkins-ci.org/commit/matrix-combinations-plugin/6dcc532402ffb0919f5639b83acd17d77a9a670a Log: JENKINS-27233 Added tests to reproduce JENKINS-27233 , exceptions in rebuild pages with non-matrix projects.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/rebuild.groovy
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/value.groovy
          http://jenkins-ci.org/commit/matrix-combinations-plugin/5f1e026403e12224faae6964adf15cdb28b57e43
          Log:
          [FIXED JENKINS-27233] Fixed exception in parameter pages or rebuild pages for non multi-configuration builds triggered with combinations parameters (in the case triggered with parameterized-trigger-plugin).

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/rebuild.groovy src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/value.groovy http://jenkins-ci.org/commit/matrix-combinations-plugin/5f1e026403e12224faae6964adf15cdb28b57e43 Log: [FIXED JENKINS-27233] Fixed exception in parameter pages or rebuild pages for non multi-configuration builds triggered with combinations parameters (in the case triggered with parameterized-trigger-plugin).
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/rebuild.groovy
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/value.groovy
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValueTest.java
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsRebuildParameterProviderTest.java
          http://jenkins-ci.org/commit/matrix-combinations-plugin/e7540f7a0481856e8ea48c2a965b304150164b51
          Log:
          Merge pull request #10 from ikedam/feature/JENKINS-27233_NonMatrixProjects

          JENKINS-27233 Fixed exceptions in rebuild pages with non-matrix projects

          Compare: https://github.com/jenkinsci/matrix-combinations-plugin/compare/3a20793391e5...e7540f7a0481

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/rebuild.groovy src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValue/value.groovy src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterValueTest.java src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsRebuildParameterProviderTest.java http://jenkins-ci.org/commit/matrix-combinations-plugin/e7540f7a0481856e8ea48c2a965b304150164b51 Log: Merge pull request #10 from ikedam/feature/ JENKINS-27233 _NonMatrixProjects JENKINS-27233 Fixed exceptions in rebuild pages with non-matrix projects Compare: https://github.com/jenkinsci/matrix-combinations-plugin/compare/3a20793391e5...e7540f7a0481
          Hide
          ikedam ikedam added a comment -

          Fixed in matrix-combinations-parameter-plugin 1.0.9.
          It will be available in the update center in a day.

          Show
          ikedam ikedam added a comment - Fixed in matrix-combinations-parameter-plugin 1.0.9. It will be available in the update center in a day.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              ndeloof Nicolas De Loof
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: