提交 432ec6c7 编写于 作者: K kohsuke

missing the throw statement here.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11290 71c3de6d-444a-0410-be80-ed276b4c234a
上级 dfeca94f
......@@ -3,7 +3,6 @@ package hudson.tasks.junit;
import hudson.FilePath.FileCallable;
import hudson.Launcher;
import hudson.Util;
import hudson.maven.MavenModuleSet;
import hudson.maven.AbstractMavenProject;
import hudson.matrix.MatrixAggregatable;
import hudson.matrix.MatrixAggregator;
......@@ -70,7 +69,7 @@ public class JUnitResultArchiver extends Publisher implements Serializable, Matr
action = new TestResultAction(build, result, listener);
if(result.getPassCount()==0 && result.getFailCount()==0)
new AbortException(Messages.JUnitResultArchiver_ResultIsEmpty());
throw new AbortException(Messages.JUnitResultArchiver_ResultIsEmpty());
} catch (IOException e) {
e.printStackTrace(listener.error("Failed to archive JUnit reports"));
build.setResult(Result.FAILURE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册