Package hudson.tasks.junit
Class JUnitResultArchiver
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.tasks.junit.JUnitResultArchiver
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep,JUnitTask,SimpleBuildStep
Generates HTML report from JUnit test result XML files.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionJUnitResultArchiver(String testResults) JUnitResultArchiver(String testResults, boolean keepLongStdio, boolean keepProperties, DescribableList<TestDataPublisher, Descriptor<TestDataPublisher>> testDataPublishers, double healthScaleFactor) Deprecated.JUnitResultArchiver(String testResults, boolean keepLongStdio, DescribableList<TestDataPublisher, Descriptor<TestDataPublisher>> testDataPublishers) Deprecated.JUnitResultArchiver(String testResults, DescribableList<TestDataPublisher, Descriptor<TestDataPublisher>> testDataPublishers) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondoublebooleanbooleanDeprecated.booleanbooleanbooleanbooleanbooleanShould we skip publishing checks to the checks API plugin.protected TestResultparse(String expandedTestResults, AbstractBuild build, Launcher launcher, BuildListener listener) Deprecated.static TestResultActionparseAndAttach(JUnitTask task, PipelineTestDetails pipelineTestDetails, Run build, FilePath workspace, Launcher launcher, TaskListener listener) Deprecated.static TestResultSummaryparseAndSummarize(JUnitTask task, PipelineTestDetails pipelineTestDetails, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) protected TestResultparseResult(org.apache.tools.ant.DirectoryScanner ds, long buildTime) Deprecated.since 2009-08-10.voidperform(Run build, FilePath workspace, Launcher launcher, TaskListener listener) final voidsetAllowEmptyResults(boolean allowEmptyResults) voidsetChecksName(String checksName) final voidsetHealthScaleFactor(double healthScaleFactor) final voidsetKeepLongStdio(boolean keepLongStdio) Deprecated.final voidsetKeepProperties(boolean keepProperties) final voidsetKeepTestNames(boolean keepTestNames) voidsetSkipMarkingBuildUnstable(boolean skipMarkingBuildUnstable) voidsetSkipOldReports(boolean skipOldReports) voidsetSkipPublishingChecks(boolean skipPublishingChecks) final voidsetStdioRetention(String stdioRetention) final voidsetTestDataPublishers(List<TestDataPublisher> testDataPublishers) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods inherited from interface hudson.tasks.junit.JUnitTask
getParsedStdioRetentionMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
JUnitResultArchiver
-
JUnitResultArchiver
@Deprecated public JUnitResultArchiver(String testResults, DescribableList<TestDataPublisher, Descriptor<TestDataPublisher>> testDataPublishers) Deprecated. -
JUnitResultArchiver
@Deprecated public JUnitResultArchiver(String testResults, boolean keepLongStdio, DescribableList<TestDataPublisher, Descriptor<TestDataPublisher>> testDataPublishers) Deprecated. -
JUnitResultArchiver
@Deprecated public JUnitResultArchiver(String testResults, boolean keepLongStdio, boolean keepProperties, DescribableList<TestDataPublisher, Descriptor<TestDataPublisher>> testDataPublishers, double healthScaleFactor) Deprecated.
-
-
Method Details
-
parse
@Deprecated protected TestResult parse(String expandedTestResults, AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException Deprecated.- Throws:
IOExceptionInterruptedException
-
perform
public void perform(Run build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException - Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
parseAndAttach
@Deprecated public static TestResultAction parseAndAttach(@NonNull JUnitTask task, PipelineTestDetails pipelineTestDetails, Run build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException Deprecated.- Throws:
InterruptedExceptionIOException
-
parseAndSummarize
public static TestResultSummary parseAndSummarize(@NonNull JUnitTask task, PipelineTestDetails pipelineTestDetails, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
parseResult
@Deprecated protected TestResult parseResult(org.apache.tools.ant.DirectoryScanner ds, long buildTime) throws IOException Deprecated.since 2009-08-10.Not actually used, but left for backward compatibility- Parameters:
ds- Directory scanner.buildTime- Build Time.- Returns:
- a
TestResult. - Throws:
IOException- if an error occurs.
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-
getTestResults
- Specified by:
getTestResultsin interfaceJUnitTask
-
getHealthScaleFactor
public double getHealthScaleFactor()- Specified by:
getHealthScaleFactorin interfaceJUnitTask
-
setHealthScaleFactor
@DataBoundSetter public final void setHealthScaleFactor(double healthScaleFactor) - Parameters:
healthScaleFactor- Health scale factor.- Since:
- 1.2-beta-1
-
getTestDataPublishers
- Specified by:
getTestDataPublishersin interfaceJUnitTask
-
setTestDataPublishers
@DataBoundSetter public final void setTestDataPublishers(@NonNull List<TestDataPublisher> testDataPublishers) - Parameters:
testDataPublishers- Test data publishers.- Since:
- 1.2
-
setKeepLongStdio
Deprecated.- Parameters:
keepLongStdio- Whether to keep long stdio.- Since:
- 1.2-beta-1
-
isKeepLongStdio
Deprecated.- Specified by:
isKeepLongStdioin interfaceJUnitTask
-
getStdioRetention
- Specified by:
getStdioRetentionin interfaceJUnitTask- Returns:
- the stdioRetention
-
setStdioRetention
- Parameters:
stdioRetention- How to keep long stdio.
-
isKeepProperties
public boolean isKeepProperties()- Specified by:
isKeepPropertiesin interfaceJUnitTask- Returns:
- the keepProperties.
-
setKeepProperties
@DataBoundSetter public final void setKeepProperties(boolean keepProperties) -
isKeepTestNames
public boolean isKeepTestNames()- Specified by:
isKeepTestNamesin interfaceJUnitTask- Returns:
- the keepTestNames
-
setKeepTestNames
@DataBoundSetter public final void setKeepTestNames(boolean keepTestNames) - Parameters:
keepTestNames- Whether to avoid prepending the parallel stage name to test name.
-
isAllowEmptyResults
public boolean isAllowEmptyResults()- Specified by:
isAllowEmptyResultsin interfaceJUnitTask- Returns:
- the allowEmptyResults
-
isSkipPublishingChecks
public boolean isSkipPublishingChecks()Should we skip publishing checks to the checks API plugin.- Specified by:
isSkipPublishingChecksin interfaceJUnitTask- Returns:
- if publishing checks should be skipped,
falseotherwise
-
setSkipPublishingChecks
@DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks) -
getChecksName
- Specified by:
getChecksNamein interfaceJUnitTask
-
setChecksName
-
setAllowEmptyResults
@DataBoundSetter public final void setAllowEmptyResults(boolean allowEmptyResults) -
isSkipMarkingBuildUnstable
public boolean isSkipMarkingBuildUnstable() -
setSkipMarkingBuildUnstable
@DataBoundSetter public void setSkipMarkingBuildUnstable(boolean skipMarkingBuildUnstable) -
isSkipOldReports
public boolean isSkipOldReports()- Specified by:
isSkipOldReportsin interfaceJUnitTask
-
setSkipOldReports
@DataBoundSetter public void setSkipOldReports(boolean skipOldReports)
-
parseAndSummarize(hudson.tasks.junit.JUnitTask, hudson.tasks.test.PipelineTestDetails, hudson.model.Run<?, ?>, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener)instead