public class FlexiblePublisher extends Recorder implements DependencyDeclarer, hudson.matrix.MatrixAggregatable
| Modifier and Type | Class and Description |
|---|---|
static class |
FlexiblePublisher.FlexiblePublisherDescriptor |
Publisher.DescriptorExtensionListImplExtensionPoint.LegacyInstancesAreScopedToHudsonBuildStep.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, prebuildgetProjectAction, performpublic 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 BuildSteppublic Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
getProjectActions in interface BuildStepgetProjectActions in class BuildStepCompatibilityLayerpublic boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
prebuild in interface BuildStepprebuild in class BuildStepCompatibilityLayerpublic boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
perform in interface BuildStepperform in class BuildStepCompatibilityLayerInterruptedExceptionIOExceptionpublic FlexiblePublisher.FlexiblePublisherDescriptor getDescriptor()
getDescriptor in interface Describable<Publisher>getDescriptor in class Recorderpublic void buildDependencyGraph(AbstractProject owner, DependencyGraph graph)
buildDependencyGraph in interface DependencyDeclarerpublic 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.MatrixAggregatablebuild - launcher - listener - MatrixAggregatable.createAggregator(hudson.matrix.MatrixBuild, hudson.Launcher, hudson.model.BuildListener)Copyright © 2016–2021. All rights reserved.