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

NPE from AbstractBuild$AbstractBuildExecution.run

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Observed in a DEV@cloud server:

      Started by an SCM change
      FATAL: null
      java.lang.NullPointerException
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:549)
          at hudson.model.Run.execute(Run.java:1665)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:246)
      

      Looks like getCurrentNode is returning null for some reason, perhaps due to a slave going offline just as the build is starting. Should be handled more gracefully.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/model/AbstractBuild.java
          core/src/main/java/hudson/model/Executor.java
          http://jenkins-ci.org/commit/jenkins/3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1
          Log:
          [FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/Executor.java http://jenkins-ci.org/commit/jenkins/3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1 Log: [FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves.
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #3429
          [FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves. (Revision 3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1)

          Result = SUCCESS
          Jesse Glick : 3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1
          Files :

          • core/src/main/java/hudson/model/AbstractBuild.java
          • core/src/main/java/hudson/model/Executor.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3429 [FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves. (Revision 3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1) Result = SUCCESS Jesse Glick : 3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1 Files : core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/Executor.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/model/AbstractBuild.java
          core/src/main/java/hudson/model/Executor.java
          http://jenkins-ci.org/commit/jenkins/eedf51eae4720d6eae05d8821e64bd37ab72c092
          Log:
          [FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves.
          (cherry picked from commit 3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/AbstractBuild.java core/src/main/java/hudson/model/Executor.java http://jenkins-ci.org/commit/jenkins/eedf51eae4720d6eae05d8821e64bd37ab72c092 Log: [FIXED JENKINS-23277] Better diagnosis for an NPE probably involving cloud slaves. (cherry picked from commit 3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1)

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: