提交 7185968f 编写于 作者: J Jesse Glick

Possibly better compatibility (though does not handle someone actually overriding parse).

上级 ac9be4e1
......@@ -122,15 +122,19 @@ public class JUnitResultArchiver extends Recorder {
this.healthScaleFactor = Math.max(0.0,healthScaleFactor);
}
/**
* In progress. Working on delegating the actual parsing to the JUnitParser.
*/
protected TestResult parse(String expandedTestResults, Run<?,?> run, @Nonnull FilePath workspace, Launcher launcher, BuildListener listener)
private TestResult parse(String expandedTestResults, Run<?,?> run, @Nonnull FilePath workspace, Launcher launcher, BuildListener listener)
throws IOException, InterruptedException
{
return new JUnitParser(isKeepLongStdio()).parseResult(expandedTestResults, run, workspace, launcher, listener);
}
@Deprecated
protected TestResult parse(String expandedTestResults, AbstractBuild build, Launcher launcher, BuildListener listener)
throws IOException, InterruptedException
{
return parse(expandedTestResults, build, build.getWorkspace(), launcher, listener);
}
@Override
public boolean perform(AbstractBuild build, Launcher launcher,
BuildListener listener) throws InterruptedException, IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册