Package org.jenkinsci.plugins.xunit
Class XUnitPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.jenkinsci.plugins.xunit.XUnitPublisher
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
Class that converting custom reports to Junit reports and records them.
- Author:
- Gregory Boissinot
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested 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
ConstructorDescriptionXUnitPublisher
(org.jenkinsci.lib.dtkit.type.TestType[] tools, XUnitThreshold[] thresholds, int thresholdMode, String testTimeMargin) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getProjectAction
(AbstractProject<?, ?> project) boolean
boolean
boolean
Collection<hudson.tasks.junit.TestDataPublisher>
int
org.jenkinsci.lib.dtkit.type.TestType[]
getTools()
void
perform
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) void
setChecksName
(String checksName) void
setFollowSymlink
(boolean followSymlink) void
setReduceLog
(boolean reduceLog) void
setSkipPublishingChecks
(boolean skipPublishingChecks) void
setSleepTime
(long sleepTime) void
setTestDataPublishers
(Collection<hudson.tasks.junit.TestDataPublisher> testDataPublishers) Configures theTestDataPublisher
s for this custom reports publisher, to process the recorded data.Methods inherited from class hudson.tasks.Recorder
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, perform, prebuild
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.tasks.BuildStep
getProjectActions, perform, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
XUnitPublisher
@DataBoundConstructor public XUnitPublisher(@CheckForNull org.jenkinsci.lib.dtkit.type.TestType[] tools, @CheckForNull XUnitThreshold[] thresholds, int thresholdMode, @CheckForNull String testTimeMargin)
-
-
Method Details
-
setReduceLog
@DataBoundSetter public void setReduceLog(boolean reduceLog) -
getReduceLog
public boolean getReduceLog() -
setSleepTime
@DataBoundSetter public void setSleepTime(long sleepTime) -
getSleepTime
public boolean getSleepTime() -
setFollowSymlink
@DataBoundSetter public void setFollowSymlink(boolean followSymlink) -
getFollowSymlink
public boolean getFollowSymlink() -
setSkipPublishingChecks
@DataBoundSetter public void setSkipPublishingChecks(boolean skipPublishingChecks) -
getSkipPublishingChecks
public boolean getSkipPublishingChecks() -
setChecksName
-
getChecksName
-
getTools
@NonNull public org.jenkinsci.lib.dtkit.type.TestType[] getTools() -
getTestTimeMargin
-
getThresholds
-
getThresholdMode
public int getThresholdMode() -
getExtraConfiguration
-
getTestDataPublishers
-
setTestDataPublishers
@DataBoundSetter public void setTestDataPublishers(@CheckForNull Collection<hudson.tasks.junit.TestDataPublisher> testDataPublishers) Configures theTestDataPublisher
s for this custom reports publisher, to process the recorded data.- Parameters:
testDataPublishers
- the test data publishers to set for this custom reports publisher
-
getProjectAction
- Specified by:
getProjectAction
in interfaceBuildStep
- Overrides:
getProjectAction
in classBuildStepCompatibilityLayer
-
perform
public void perform(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-