timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-47455] NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace #9433

Closed timja closed 7 years ago

timja commented 7 years ago

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.


Originally reported by jglick, imported from: NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace
  • assignee: jglick
  • status: Resolved
  • priority: Minor
  • resolution: Fixed
  • resolved: 2017-10-23T12:58:01+00:00
  • imported: 2022/01/10
timja commented 7 years ago

jglick:

Seems to coincide with JENKINS-38527.

timja commented 7 years ago

jglick:

Dealing with JENKINS-36716 would have caught this sooner.

timja commented 2 years ago

[Originally depends on: JENKINS-36716]