-
Bug
-
Resolution: Fixed
-
Major
If Publisher.needsToRunAfterFinalized throws an exception, the workspace lease is not released.
Worse, the exception is not even reported anywhere if there was already an exception in the publisher, because Run.handleFatalBuildProblem closed the build log the first time, so the stack trace is lost.
- links to
Code changed in jenkins
User: Jesse Glick
Path:
core/src/main/java/hudson/model/Build.java
core/src/main/java/hudson/model/Run.java
test/src/test/java/hudson/model/BuildExecutionTest.java
http://jenkins-ci.org/commit/jenkins/62af87b67a1097376b9af554421e621d32f7013f
Log:
JENKINS-26698Make sure BuildExecution.cleanUp always calls super, to release the workspace lease.Also stop closing the build log in Run.handleFatalBuildProblem; we want to see any subsequent messages too.