Skip to content

Commit 205ef51

Browse files
committedJan 19, 2015
Merge pull request #106 from tastatur/master
[FIXED JENKINS-26264] UpdateUpdater perform will throw an AbortException
2 parents a20e047 + e5ef893 commit 205ef51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/main/java/hudson/scm/subversion/UpdateUpdater.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
*/
2727
package hudson.scm.subversion;
2828

29+
import hudson.AbortException;
2930
import hudson.Extension;
3031
import hudson.model.Hudson;
3132
import hudson.scm.SubversionSCM.External;
@@ -167,7 +168,7 @@ public List<External> perform() throws IOException, InterruptedException {
167168
} catch (SVNCancelException e) {
168169
if (isAuthenticationFailedError(e)) {
169170
e.printStackTrace(listener.error("Failed to check out " + location.remote));
170-
return null;
171+
throw (AbortException) new AbortException().initCause(e);
171172
} else {
172173
listener.error("Subversion update has been canceled");
173174
throw (InterruptedException)new InterruptedException().initCause(e);

0 commit comments

Comments
 (0)