提交 ca61e0e1 编写于 作者: R rseguy

[FIXED HUDSON-7562]

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36824 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0404b5cf
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Martin Eigenbrodt, Tom Huybrechts, Yahoo!, Inc.
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Martin Eigenbrodt,
* Tom Huybrechts, Yahoo!, Inc., Richard Hierlmeier
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
......@@ -119,9 +120,10 @@ public class JUnitResultArchiver extends Recorder implements Serializable,
protected TestResult parse(String expandedTestResults, AbstractBuild build, Launcher launcher, BuildListener listener)
throws IOException, InterruptedException
{
return new JUnitParser(keepLongStdio).parse(expandedTestResults, build, launcher, listener);
return new JUnitParser(isKeepLongStdio()).parse(expandedTestResults, build, launcher, listener);
}
@Override
public boolean perform(AbstractBuild build, Launcher launcher,
BuildListener listener) throws InterruptedException, IOException {
listener.getLogger().println(Messages.JUnitResultArchiver_Recording());
......@@ -215,6 +217,13 @@ public class JUnitResultArchiver extends Recorder implements Serializable,
return new TestResultAggregator(build, launcher, listener);
}
/**
* @return the keepLongStdio
*/
public boolean isKeepLongStdio() {
return keepLongStdio;
}
/**
* Test result tracks the diff from the previous run, hence the checkpoint.
*/
......@@ -223,7 +232,6 @@ public class JUnitResultArchiver extends Recorder implements Serializable,
private static final long serialVersionUID = 1L;
@Extension
public static class DescriptorImpl extends BuildStepDescriptor<Publisher> {
public String getDisplayName() {
......
<!--
The MIT License
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Tom Huybrechts
Copyright (c) 2004-2010, Sun Microsystems, Inc., Kohsuke Kawaguchi, Tom Huybrechts,
Richard Hierlmeier
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -28,9 +29,9 @@ THE SOFTWARE.
description="${%description('http://ant.apache.org/manual/Types/fileset.html')}">
<f:textbox />
</f:entry>
<f:entry field="keepLongStdio" title="">
<f:checkbox/>
<label class="attach-previous">${%Retain long standard output/error}</label>
<f:entry field="keepLongStdio" title="">
<f:checkbox name="keepLongStdio" checked="${instance.keepLongStdio}"/>
<label class="attach-previous">${%Retain long standard output/error}</label>
</f:entry>
<j:invokeStatic var="testDataPublisherDescriptors"
className="hudson.tasks.junit.TestDataPublisher" method="all" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册