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

NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace

    Details

    • Similar Issues:

      Description

      A user of the vSphere plugin reports this exception:

      java.lang.NullPointerException
      	at hudson.model.AbstractBuild$AbstractBuildExecution.decideWorkspace(AbstractBuild.java:440)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:480)
      	at hudson.model.Run.execute(Run.java:1737)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:419)
      

      The code in question is apparently vulnerable to a null return value from getRootPath, perhaps due to race conditions involving an agent going offline right as a build is starting.

        Attachments

          Issue Links

            Activity

            jglick Jesse Glick created issue -
            Hide
            jglick Jesse Glick added a comment -

            Seems to coincide with JENKINS-38527.

            Show
            jglick Jesse Glick added a comment - Seems to coincide with  JENKINS-38527 .
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue relates to JENKINS-38527 [ JENKINS-38527 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 3090 (Web Link)" [ 17891 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            Hide
            jglick Jesse Glick added a comment -

            Dealing with JENKINS-36716 would have caught this sooner.

            Show
            jglick Jesse Glick added a comment - Dealing with  JENKINS-36716 would have caught this sooner.
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-36716 [ JENKINS-36716 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jamesdumay James Dumay made changes -
            Remote Link This issue links to "CloudBees Internal OSS-2529 (Web Link)" [ 18262 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: