public class FlexiblePublisher extends Recorder implements DependencyDeclarer, hudson.matrix.MatrixAggregatable
Modifier and Type | Class and Description |
---|---|
static class |
FlexiblePublisher.FlexiblePublisherDescriptor |
Publisher.DescriptorExtensionListImpl
ExtensionPoint.LegacyInstancesAreScopedToHudson
BuildStep.PublisherList
Modifier and Type | Field and Description |
---|---|
static String |
PROMOTION_JOB_TYPE |
BUILDERS, PUBLISHERS
Constructor and Description |
---|
FlexiblePublisher(List<ConditionalPublisher> publishers) |
Modifier and Type | Method and Description |
---|---|
void |
buildDependencyGraph(AbstractProject owner,
DependencyGraph graph) |
hudson.matrix.MatrixAggregator |
createAggregator(hudson.matrix.MatrixBuild build,
Launcher launcher,
BuildListener listener)
Return an aggregator worked for multi-configuration projects.
|
static String |
getBuildStepDetailedName(BuildStep s) |
static String |
getBuildStepShortName(BuildStep s) |
static String |
getBuildStepShortName(List<BuildStep> buildStepList) |
FlexiblePublisher.FlexiblePublisherDescriptor |
getDescriptor() |
Collection<? extends Action> |
getProjectActions(AbstractProject<?,?> project) |
List<ConditionalPublisher> |
getPublishers() |
BuildStepMonitor |
getRequiredMonitorService() |
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener) |
boolean |
prebuild(AbstractBuild<?,?> build,
BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectAction, perform
public static final String PROMOTION_JOB_TYPE
@DataBoundConstructor public FlexiblePublisher(List<ConditionalPublisher> publishers)
publishers
- FlexiblePublisher.FlexiblePublisherDescriptor.newInstance(StaplerRequest, JSONObject)
public List<ConditionalPublisher> getPublishers()
public BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface BuildStep
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
getProjectActions
in interface BuildStep
getProjectActions
in class BuildStepCompatibilityLayer
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
prebuild
in interface BuildStep
prebuild
in class BuildStepCompatibilityLayer
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
perform
in interface BuildStep
perform
in class BuildStepCompatibilityLayer
InterruptedException
IOException
public FlexiblePublisher.FlexiblePublisherDescriptor getDescriptor()
getDescriptor
in interface Describable<Publisher>
getDescriptor
in class Recorder
public void buildDependencyGraph(AbstractProject owner, DependencyGraph graph)
buildDependencyGraph
in interface DependencyDeclarer
public hudson.matrix.MatrixAggregator createAggregator(hudson.matrix.MatrixBuild build, Launcher launcher, BuildListener listener)
BuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener)
is called
for each axe combination builds.
For whole the multi-configuration project, MatrixAggregator.endBuild()
is called instead.createAggregator
in interface hudson.matrix.MatrixAggregatable
build
- launcher
- listener
- MatrixAggregatable.createAggregator(hudson.matrix.MatrixBuild, hudson.Launcher, hudson.model.BuildListener)
Copyright © 2016–2021. All rights reserved.