Package hudson.plugins.sauce_ondemand
Class SauceOnDemandTestPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- hudson.plugins.sauce_ondemand.SauceOnDemandTestPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class SauceOnDemandTestPublisher extends Recorder implements SimpleBuildStep
Reimplementation ofMavenTestDataPublisher
in order to add aSauceOnDemandReportPublisher
instance into the test report data, so that embedded Sauce reports can be displayed on the test results page.- Author:
- Ross Rowe
- See Also:
- JENKINS-11721
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SauceOnDemandTestPublisher.DescriptorImpl
-
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
Constructors Constructor Description SauceOnDemandTestPublisher()
SauceOnDemandTestPublisher(DescribableList<hudson.tasks.junit.TestDataPublisher,Descriptor<hudson.tasks.junit.TestDataPublisher>> testDataPublishers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SauceOnDemandReportPublisher
createReportPublisher()
BuildStepMonitor
getRequiredMonitorService()
List<hudson.tasks.junit.TestDataPublisher>
getTestDataPublishers()
boolean
perform(AbstractBuild build, Launcher launcher, BuildListener listener)
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setTestDataPublishers(List<hudson.tasks.junit.TestDataPublisher> testDataPublishers)
-
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
getProjectAction, getProjectActions, 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
getProjectAction, getProjectActions, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
SauceOnDemandTestPublisher
@DataBoundConstructor public SauceOnDemandTestPublisher()
-
SauceOnDemandTestPublisher
public SauceOnDemandTestPublisher(DescribableList<hudson.tasks.junit.TestDataPublisher,Descriptor<hudson.tasks.junit.TestDataPublisher>> testDataPublishers)
-
-
Method Detail
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
perform
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
Created for implementing SimpleBuildStep / pipeline
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
createReportPublisher
protected SauceOnDemandReportPublisher createReportPublisher()
-
getTestDataPublishers
public List<hudson.tasks.junit.TestDataPublisher> getTestDataPublishers()
-
setTestDataPublishers
@DataBoundSetter public final void setTestDataPublishers(@NonNull List<hudson.tasks.junit.TestDataPublisher> testDataPublishers)
-
-