Skip to content
Browse files

[FIXED JENKINS-23568] Be sure to release WorkspaceList.Lease determin…

…istically in a finally block.

(cherry picked from commit 47fa17b)

  • Loading branch information
jglick authored and olivergondza committed Jan 29, 2015
1 parent 3520042 commit 16ee133b480787101edc039d94c4f6ff055d4ff7
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/hudson/model/
@@ -1451,9 +1451,9 @@ private PollingResult pollWithWorkspace(TaskListener listener, SCM scm, R lb, @N
// OTOH, if a concurrent build is chosen, the user is willing to create a multiple workspace,
// so better throughput is achieved over time (modulo the initial cost of creating that many workspaces)
// by having multiple workspaces
WorkspaceList.Lease lease = l.acquire(ws, !concurrentBuild);
Node node = lb.getBuiltOn();
Launcher launcher = ws.createLauncher(listener).decorateByEnv(getEnvironment(node,listener));
WorkspaceList.Lease lease = l.acquire(ws, !concurrentBuild);
try {
listener.getLogger().println("Polling SCM changes on " + node.getSelfLabel().getName());
LOGGER.fine("Polling SCM changes of " + getName());

0 comments on commit 16ee133

Please sign in to comment.
You can’t perform that action at this time.