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
Reimplementation of
MavenTestDataPublisher in order to add a SauceOnDemandReportPublisher instance into the test report data, so that embedded Sauce reports
can be displayed on the test results page.- Author:
- Ross Rowe
- See Also:
-
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
ConstructorsConstructorDescriptionSauceOnDemandTestPublisher(DescribableList<hudson.tasks.junit.TestDataPublisher, Descriptor<hudson.tasks.junit.TestDataPublisher>> testDataPublishers) -
Method Summary
Modifier and TypeMethodDescriptionprotected SauceOnDemandReportPublisherList<hudson.tasks.junit.TestDataPublisher>booleanperform(AbstractBuild build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) final voidsetTestDataPublishers(List<hudson.tasks.junit.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, 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, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
SauceOnDemandTestPublisher
@DataBoundConstructor public SauceOnDemandTestPublisher() -
SauceOnDemandTestPublisher
public SauceOnDemandTestPublisher(DescribableList<hudson.tasks.junit.TestDataPublisher, Descriptor<hudson.tasks.junit.TestDataPublisher>> testDataPublishers)
-
-
Method Details
-
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
-
getTestDataPublishers
-
setTestDataPublishers
@DataBoundSetter public final void setTestDataPublishers(@NonNull List<hudson.tasks.junit.TestDataPublisher> testDataPublishers)
-