Skip to content
Browse files
[fix JENKINS-20531], catch GitException during fetch, throw AbortExce…

The AbortException is already thrown from another area of the same
method, so throwing the AbortException is likely no worse than the
existing AbortException which is thrown (instead of GitException).
  • Loading branch information
daspilker authored and MarkEWaite committed Oct 29, 2014
1 parent 4a44332 commit 1c1bb616b28ad50764aaaf073dd9eee056a7e5f6
Showing 1 changed file with 6 additions and 1 deletion.
@@ -921,7 +921,12 @@ private void retrieveChanges(Run build, GitClient git, TaskListener listener) th

for (RemoteConfig remoteRepository : repos) {
fetchFrom(git, listener, remoteRepository);
try {
fetchFrom(git, listener, remoteRepository);
} catch (GitException ex) {
ex.printStackTrace(listener.error("Error fetching changes from repo '%s'", remoteRepository.getName()));
throw new AbortException();

0 comments on commit 1c1bb61

Please sign in to comment.