Class TriggerBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- hudson.plugins.parameterizedtrigger.TriggerBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,DependencyDeclarer
public class TriggerBuilder extends Builder implements DependencyDeclarer
Builder
that triggers other projects and optionally waits for their completion.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TriggerBuilder.DescriptorImpl
static class
TriggerBuilder.TriggerBuilderDependency
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description TriggerBuilder(BlockableBuildTriggerConfig... configs)
TriggerBuilder(List<BlockableBuildTriggerConfig> configs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildDependencyGraph(AbstractProject owner, DependencyGraph graph)
List<BlockableBuildTriggerConfig>
getConfigs()
Collection<? extends Action>
getProjectActions(AbstractProject<?,?> project)
String
getProjectListAsString(List<Job> projectList)
BuildStepMonitor
getRequiredMonitorService()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, perform, prebuild
-
-
-
-
Constructor Detail
-
TriggerBuilder
@DataBoundConstructor public TriggerBuilder(List<BlockableBuildTriggerConfig> configs)
-
TriggerBuilder
public TriggerBuilder(BlockableBuildTriggerConfig... configs)
-
-
Method Detail
-
getConfigs
public List<BlockableBuildTriggerConfig> getConfigs()
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Overrides:
getRequiredMonitorService
in classBuilder
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getProjectListAsString
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getProjectListAsString(List<Job> projectList)
-
getProjectActions
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
buildDependencyGraph
public void buildDependencyGraph(AbstractProject owner, DependencyGraph graph)
- Specified by:
buildDependencyGraph
in interfaceDependencyDeclarer
-
-