mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
Hudson was failing to report error messages in several situations during a build.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36057 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
235e1d3b96
commit
51a627ac1d
3 files changed
+3
-1
No files matched your search
@@ -488,7 +488,7 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
|
||||
return;
|
||||
}
|
||||
} catch (AbortException e) {
|
||||
// checkout error already reported
|
||||
listener.error(e.getMessage());
|
||||
} catch (IOException e) {
|
||||
// checkout error not yet reported
|
||||
e.printStackTrace(listener.getLogger());
|
||||
|
||||
@@ -1232,6 +1232,7 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
|
||||
return r;
|
||||
}
|
||||
} catch (AbortException e) {
|
||||
listener.getLogger().println(e.getMessage());
|
||||
listener.fatalError(Messages.AbstractProject_Aborted());
|
||||
LOGGER.log(Level.FINE, "Polling "+this+" aborted",e);
|
||||
return NO_CHANGES;
|
||||
|
||||
@@ -1285,6 +1285,7 @@ public abstract class Run <JobT extends Job<JobT,RunT>,RunT extends Run<JobT,Run
|
||||
throw t;
|
||||
} catch( AbortException e ) {// orderly abortion.
|
||||
result = Result.FAILURE;
|
||||
listener.error(e.getMessage());
|
||||
LOGGER.log(FINE, "Build "+this+" aborted",e);
|
||||
} catch( RunnerAbortedException e ) {// orderly abortion.
|
||||
result = Result.FAILURE;
|
||||
|
||||
Reference in new issue
Block a user