mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
removed superficial error message.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4950 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
c59b2f5b56
commit
f46fe2d5d4
1 file changed
+5
@@ -72,6 +72,11 @@ public class JUnitResultArchiver extends Publisher implements Serializable, Matr
|
||||
if(result.getPassCount()==0 && result.getFailCount()==0)
|
||||
new AbortException("None of the test reports contained any result");
|
||||
} catch (AbortException e) {
|
||||
if(build.getResult()==Result.FAILURE)
|
||||
// most likely a build failed before it gets to the test phase.
|
||||
// don't report confusing error message.
|
||||
return true;
|
||||
|
||||
listener.getLogger().println(e.getMessage());
|
||||
build.setResult(Result.FAILURE);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user