Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/main/java/hudson/scm/subversion/UpdateUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,12 @@ public List<External> perform() throws IOException, InterruptedException {
SVNErrorCode errorCode = cause.getErrorMessage().getErrorCode();
if (errorCode == SVNErrorCode.WC_LOCKED) {
// work space locked. try fresh check out
listener.getLogger().println("Workspace appear to be locked, so getting a fresh workspace");
return delegateTo(new CheckoutUpdater());
//listener.getLogger().println("Workspace appear to be locked, so getting a fresh workspace");
//return delegateTo(new CheckoutUpdater());

//show error instead of check out, useful for big repositories
listener.getLogger().println("Workspace appear to be locked, so Failing the build");
throw (InterruptedException) new InterruptedException().initCause(e);
}
if (errorCode == SVNErrorCode.WC_OBSTRUCTED_UPDATE) {
// HUDSON-1882. If existence of local files cause an update to fail,
Expand Down