public class JUnitResultArchiver extends Recorder implements SimpleBuildStep, JUnitTask
Modifier and Type | Class and Description |
---|---|
static class |
JUnitResultArchiver.DescriptorImpl |
Publisher.DescriptorExtensionListImpl
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
JUnitResultArchiver(String testResults) |
JUnitResultArchiver(String testResults,
boolean keepLongStdio,
DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> testDataPublishers)
Deprecated.
|
JUnitResultArchiver(String testResults,
boolean keepLongStdio,
DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> testDataPublishers,
double healthScaleFactor)
Deprecated.
|
JUnitResultArchiver(String testResults,
DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> testDataPublishers)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
double |
getHealthScaleFactor() |
BuildStepMonitor |
getRequiredMonitorService() |
List<TestDataPublisher> |
getTestDataPublishers() |
String |
getTestResults() |
boolean |
isAllowEmptyResults() |
boolean |
isKeepLongStdio() |
protected TestResult |
parse(String expandedTestResults,
AbstractBuild build,
Launcher launcher,
BuildListener listener)
Deprecated.
|
static TestResultAction |
parseAndAttach(JUnitTask task,
PipelineTestDetails pipelineTestDetails,
Run build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
protected TestResult |
parseResult(org.apache.tools.ant.DirectoryScanner ds,
long buildTime)
Deprecated.
since 2009-08-10.
|
void |
perform(Run build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
void |
setAllowEmptyResults(boolean allowEmptyResults) |
void |
setHealthScaleFactor(double healthScaleFactor) |
void |
setKeepLongStdio(boolean keepLongStdio) |
void |
setTestDataPublishers(List<TestDataPublisher> testDataPublishers) |
getDescriptor
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProjectAction, getProjectActions, perform, prebuild
@DataBoundConstructor public JUnitResultArchiver(String testResults)
@Deprecated public JUnitResultArchiver(String testResults, DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> testDataPublishers)
@Deprecated public JUnitResultArchiver(String testResults, boolean keepLongStdio, DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> testDataPublishers)
@Deprecated public JUnitResultArchiver(String testResults, boolean keepLongStdio, DescribableList<TestDataPublisher,Descriptor<TestDataPublisher>> testDataPublishers, double healthScaleFactor)
@Deprecated protected TestResult parse(String expandedTestResults, AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
IOException
InterruptedException
public void perform(Run build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
perform
in interface SimpleBuildStep
InterruptedException
IOException
public static TestResultAction parseAndAttach(@Nonnull JUnitTask task, PipelineTestDetails pipelineTestDetails, Run build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
InterruptedException
IOException
protected TestResult parseResult(org.apache.tools.ant.DirectoryScanner ds, long buildTime) throws IOException
ds
- Directory scanner.buildTime
- Build Time.TestResult
.IOException
- if an error occurs.public BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface BuildStep
public String getTestResults()
getTestResults
in interface JUnitTask
public double getHealthScaleFactor()
getHealthScaleFactor
in interface JUnitTask
@DataBoundSetter public final void setHealthScaleFactor(double healthScaleFactor)
healthScaleFactor
- Health scale factor.@Nonnull public List<TestDataPublisher> getTestDataPublishers()
getTestDataPublishers
in interface JUnitTask
@DataBoundSetter public final void setTestDataPublishers(@Nonnull List<TestDataPublisher> testDataPublishers)
testDataPublishers
- Test data publishers.public boolean isKeepLongStdio()
isKeepLongStdio
in interface JUnitTask
@DataBoundSetter public final void setKeepLongStdio(boolean keepLongStdio)
keepLongStdio
- Whether to keep long stdio.public boolean isAllowEmptyResults()
isAllowEmptyResults
in interface JUnitTask
@DataBoundSetter public final void setAllowEmptyResults(boolean allowEmptyResults)
Copyright © 2016–2020. All rights reserved.