diff --git a/src/main/java/hudson/scm/subversion/UpdateUpdater.java b/src/main/java/hudson/scm/subversion/UpdateUpdater.java index f00ebdb29..e63df6192 100755 --- a/src/main/java/hudson/scm/subversion/UpdateUpdater.java +++ b/src/main/java/hudson/scm/subversion/UpdateUpdater.java @@ -178,8 +178,12 @@ public List 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,