Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: core
-
Labels:
-
Similar Issues:
Description
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.
Attachments
Issue Links
- 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/7e72e7d1218e3443650d8d0c1e20b70d558422b0
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.
(cherry picked from commit 62af87b67a1097376b9af554421e621d32f7013f)