Class DownStreamPublisher
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- de.tracetronic.jenkins.plugins.ecutest.report.DownStreamPublisher
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class DownStreamPublisher extends Recorder implements SimpleBuildStep
Class holding the downstream configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DownStreamPublisher.DescriptorImpl
DescriptorImpl forDownStreamPublisher
.-
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 Modifier and Type Field Description protected static String
DEFAULT_REPORT_DIR
Defines the default report folder.-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description DownStreamPublisher(String workspace, String reportDir)
Instantiates a newDownStreamPublisher
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getDefaultReportDir()
AbstractReportDescriptor
getDescriptor()
List<AbstractReportPublisher>
getPublishers()
String
getReportDir()
BuildStepMonitor
getRequiredMonitorService()
String
getWorkspace()
void
perform(Run<?,?> run, FilePath workspace, Launcher launcher, TaskListener listener)
void
setPublishers(List<AbstractReportPublisher> publishers)
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, 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
getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Field Detail
-
DEFAULT_REPORT_DIR
protected static final String DEFAULT_REPORT_DIR
Defines the default report folder.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DownStreamPublisher
@DataBoundConstructor public DownStreamPublisher(String workspace, String reportDir)
Instantiates a newDownStreamPublisher
.- Parameters:
workspace
- the downstream workspacereportDir
- the report directory
-
-
Method Detail
-
getDefaultReportDir
public static String getDefaultReportDir()
-
getPublishers
@Nonnull public List<AbstractReportPublisher> getPublishers()
-
setPublishers
@DataBoundSetter public void setPublishers(List<AbstractReportPublisher> publishers)
-
getReportDir
public String getReportDir()
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath workspace, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getDescriptor
public AbstractReportDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classRecorder
-
-