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

Can't launch a manual build when the project is running

      If we want to launch a build with parameters when another build is running, we obtain a faulty page with a Java backtrace (see attachment).
      The problem comes from the differentiation between Success and Failed state of the previous build, "MatrixRun.getResult()" return null (see second attachment for a quick&dirty patch).

          [JENKINS-28824] Can't launch a manual build when the project is running

          ikedam added a comment -

          JENKINS-28861 reports the same issue on Windows 2008 + Jenkins 1.617 + Matrix Project Plugin 1.5 + Matrix Configuration Parameter Plugin 1.0.8

          ikedam added a comment - JENKINS-28861 reports the same issue on Windows 2008 + Jenkins 1.617 + Matrix Project Plugin 1.5 + Matrix Configuration Parameter Plugin 1.0.8

          ikedam added a comment -

          Reproduced also with Jenkins 1.509, which is targeted with matrix-combination-plugin.
          Introduced with 1.0.8, 9716d77.
          Patch by corentin_rossignon should work correct.

          ikedam added a comment - Reproduced also with Jenkins 1.509, which is targeted with matrix-combination-plugin. Introduced with 1.0.8, 9716d77 . Patch by corentin_rossignon should work correct.

          Jeffrey Hagelberg added a comment - - edited

          We're also seeing this in Jenkins ver. 1.617 on Windows 2012 with version 1.0.8 of the matrix-combination-plugin. I manually applied above the patch to the matrix-combination-plugin plugin, and it resolved the issue.

          Jeffrey Hagelberg added a comment - - edited We're also seeing this in Jenkins ver. 1.617 on Windows 2012 with version 1.0.8 of the matrix-combination-plugin. I manually applied above the patch to the matrix-combination-plugin plugin, and it resolved the issue.

          ikedam added a comment -

          ikedam added a comment - https://github.com/jenkinsci/matrix-combinations-plugin/pull/9

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java
          http://jenkins-ci.org/commit/matrix-combinations-plugin/171c874bd48c4bb76887ab3286cd9b01b3174d7d
          Log:
          JENKINS-28824 Added a test to reproduce JENKINS-28824, NPE on the build page when a build is running.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java http://jenkins-ci.org/commit/matrix-combinations-plugin/171c874bd48c4bb76887ab3286cd9b01b3174d7d Log: JENKINS-28824 Added a test to reproduce JENKINS-28824 , NPE on the build page when a build is running.

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy
          http://jenkins-ci.org/commit/matrix-combinations-plugin/8dcdb677415e63af08df396c6fd171199a73d15a
          Log:
          [FIXED JENKINS-28824] Avoids NPE for running builds. Patch by @corentin_rossignon.

          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 http://jenkins-ci.org/commit/matrix-combinations-plugin/8dcdb677415e63af08df396c6fd171199a73d15a Log: [FIXED JENKINS-28824] Avoids NPE for running builds. Patch by @corentin_rossignon.

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/resources/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinition/index.groovy
          src/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java
          http://jenkins-ci.org/commit/matrix-combinations-plugin/3a20793391e57feaca5449271bed0325b913983d
          Log:
          Merge pull request #9 from ikedam/feature/JENKINS-28824_NpeForBuilding

          JENKINS-28824 Fix NPE on the build page when a build is running.

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

          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/test/java/hudson/plugins/matrix_configuration_parameter/MatrixCombinationsParameterDefinitionTest.java http://jenkins-ci.org/commit/matrix-combinations-plugin/3a20793391e57feaca5449271bed0325b913983d Log: Merge pull request #9 from ikedam/feature/ JENKINS-28824 _NpeForBuilding JENKINS-28824 Fix NPE on the build page when a build is running. Compare: https://github.com/jenkinsci/matrix-combinations-plugin/compare/47e89fc43f3d...3a20793391e5

          ikedam added a comment -

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

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

            ikedam ikedam
            corentin_rossignon Corentin Rossignon
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: