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 ofMavenTestDataPublisherin order to add aSauceOnDemandReportPublisherinstance 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 classSauceOnDemandTestPublisher.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 SauceOnDemandReportPublishercreateReportPublisher()BuildStepMonitorgetRequiredMonitorService()List<hudson.tasks.junit.TestDataPublisher>getTestDataPublishers()booleanperform(AbstractBuild build, Launcher launcher, BuildListener listener)voidperform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)voidsetTestDataPublishers(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:
getRequiredMonitorServicein interfaceBuildStep
-
perform
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOExceptionCreated for implementing SimpleBuildStep / pipeline
- Specified by:
performin interfaceSimpleBuildStep- Throws:
InterruptedExceptionIOException
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
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)
-
-