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

NPE if one of the upstream builds is not found (our case 9294)

    Details

    • Similar Issues:

      Description

      I have a nightly build who trigger a matrix and I have this error for every jobs in the matrix:

      Started by upstream project "Windows Results" build number 12418
      originally caused by:
       Started by upstream project "Supervisor Test Windows Nightly" build number 615
       originally caused by:
        Started by upstream project "Nightly Build Hoops 3DX main line Windows 64" build number 541
        originally caused by:
         Started by an SCM change
      Building remotely on Slave2
      FATAL: null
      java.lang.NullPointerException
      	at net.praqma.jenkins.plugin.reloaded.Util.getUpstreamRebuildAction(Util.java:84)
      	at net.praqma.jenkins.plugin.reloaded.Util.getDownstreamRebuildActionFromMatrixBuild(Util.java:63)
      	at net.praqma.jenkins.plugin.reloaded.MatrixReloadedEnvironmentContributor.buildEnvironmentFor(MatrixReloadedEnvironmentContributor.java:44)
      	at hudson.model.Run.getEnvironment(Run.java:2045)
      	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:931)
      	at hudson.matrix.MatrixRun$MatrixRunExecution.decideWorkspace(MatrixRun.java:175)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567)
      	at hudson.model.Run.execute(Run.java:1575)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:237)
      

      I don't have the problem with the daily build who trigger not all jobs in the matrix. So I was thinking about a heavy load problem, but it seems to be something different.

      the 3 upstream projects are still in jenkins. But not every workspaces.

      https://groups.google.com/forum/#!topic/jenkinsci-users/nXQQ0yLg238

        Attachments

          Activity

          Hide
          jbrejner Jens Brejner added a comment -

          Pseudo linking into our tracker

          Show
          jbrejner Jens Brejner added a comment - Pseudo linking into our tracker
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: mcupak
          Path:
          src/main/java/net/praqma/jenkins/plugin/reloaded/Util.java
          http://jenkins-ci.org/commit/Matrix-Reloaded-Plugin/50fbcb08969791cd668a5aa2717642bd064d8a4c
          Log:
          [FIXED JENKINS-17964] avoids NPE caused by the removal of the upstream build, fixed inconsistent tab-space formatting

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: mcupak Path: src/main/java/net/praqma/jenkins/plugin/reloaded/Util.java http://jenkins-ci.org/commit/Matrix-Reloaded-Plugin/50fbcb08969791cd668a5aa2717642bd064d8a4c Log: [FIXED JENKINS-17964] avoids NPE caused by the removal of the upstream build, fixed inconsistent tab-space formatting
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mads Nielsen
          Path:
          src/main/java/net/praqma/jenkins/plugin/reloaded/Util.java
          http://jenkins-ci.org/commit/Matrix-Reloaded-Plugin/606b8eb83b5da36077ce2c1f6a211d4e8a9ea73c
          Log:
          Merge pull request #4 from mcupak/master

          [FIXED JENKINS-17964]

          Compare: https://github.com/jenkinsci/Matrix-Reloaded-Plugin/compare/fbf41cb417e7...606b8eb83b5d

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mads Nielsen Path: src/main/java/net/praqma/jenkins/plugin/reloaded/Util.java http://jenkins-ci.org/commit/Matrix-Reloaded-Plugin/606b8eb83b5da36077ce2c1f6a211d4e8a9ea73c Log: Merge pull request #4 from mcupak/master [FIXED JENKINS-17964] Compare: https://github.com/jenkinsci/Matrix-Reloaded-Plugin/compare/fbf41cb417e7...606b8eb83b5d

            People

            • Assignee:
              praqma Praqma Support
              Reporter:
              l_roche Louis Roché
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: