diff --git a/core/src/main/java/hudson/console/HudsonExceptionNote.java b/core/src/main/java/hudson/console/HudsonExceptionNote.java index 3ffb7352d7..bdc62874f9 100644 --- a/core/src/main/java/hudson/console/HudsonExceptionNote.java +++ b/core/src/main/java/hudson/console/HudsonExceptionNote.java @@ -53,6 +53,9 @@ public class HudsonExceptionNote extends ConsoleNote { return this; } + if (AND_MORE.matcher(line).matches()) + return this; + // looks like we are done with the stack trace return null; } @@ -93,4 +96,6 @@ public class HudsonExceptionNote extends ConsoleNote { private static final Pattern STACK_TRACE_ELEMENT = Pattern.compile("\tat ("+CLASSNAME_PATTERN+")\\.([\\p{L}0-9$_<>]+)\\((\\S+):([0-9]+)\\)"); private static final String CAUSED_BY = "Caused by: "; + + private static final Pattern AND_MORE = Pattern.compile("\t... [0-9]+ more"); }