Class BlockableBuildTriggerConfig
- java.lang.Object
-
- hudson.plugins.parameterizedtrigger.BuildTriggerConfig
-
- hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig
-
- All Implemented Interfaces:
Describable<BuildTriggerConfig>
public class BlockableBuildTriggerConfig extends BuildTriggerConfig
BuildTriggerConfig
that supports blocking of the execution.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BlockableBuildTriggerConfig.DescriptorImpl
-
Field Summary
Fields Modifier and Type Field Description boolean
buildAllNodesWithLabel
-
Constructor Summary
Constructors Constructor Description BlockableBuildTriggerConfig(String projects, BlockingBehaviour block, List<AbstractBuildParameterFactory> configFactories, List<AbstractBuildParameters> configs)
BlockableBuildTriggerConfig(String projects, BlockingBehaviour block, List<AbstractBuildParameters> configs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockingBehaviour
getBlock()
Collection<Node>
getNodes()
List<QueueTaskFuture<AbstractBuild>>
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
Note that with Hudson 1.341, trigger should be usingBuildTrigger.buildDependencyGraph(AbstractProject, hudson.model.DependencyGraph)
.com.google.common.collect.ListMultimap<AbstractProject,QueueTaskFuture<AbstractBuild>>
perform2(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
com.google.common.collect.ListMultimap<Job,QueueTaskFuture<AbstractBuild>>
perform3(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
protected QueueTaskFuture
schedule(AbstractBuild<?,?> build, Job project, List<Action> list, TaskListener listener)
-
Methods inherited from class hudson.plugins.parameterizedtrigger.BuildTriggerConfig
canBeScheduled, createUpstreamCause, getCondition, getConfigFactories, getConfigs, getDescriptor, getJobs, getProjectInfo, getProjectList, getProjectList, getProjects, getProjects, getTriggerWithNoParameters, isTriggerFromChildProjects, onDeleted, onJobRenamed, schedule, schedule, schedule, toString
-
-
-
-
Constructor Detail
-
BlockableBuildTriggerConfig
public BlockableBuildTriggerConfig(String projects, BlockingBehaviour block, List<AbstractBuildParameters> configs)
-
BlockableBuildTriggerConfig
@DataBoundConstructor public BlockableBuildTriggerConfig(String projects, BlockingBehaviour block, List<AbstractBuildParameterFactory> configFactories, List<AbstractBuildParameters> configs)
-
-
Method Detail
-
getBlock
public BlockingBehaviour getBlock()
-
perform
public List<QueueTaskFuture<AbstractBuild>> perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
Description copied from class:BuildTriggerConfig
Note that with Hudson 1.341, trigger should be usingBuildTrigger.buildDependencyGraph(AbstractProject, hudson.model.DependencyGraph)
.- Overrides:
perform
in classBuildTriggerConfig
- Throws:
InterruptedException
IOException
-
perform2
public com.google.common.collect.ListMultimap<AbstractProject,QueueTaskFuture<AbstractBuild>> perform2(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Overrides:
perform2
in classBuildTriggerConfig
- Throws:
InterruptedException
IOException
-
perform3
public com.google.common.collect.ListMultimap<Job,QueueTaskFuture<AbstractBuild>> perform3(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Overrides:
perform3
in classBuildTriggerConfig
- Throws:
InterruptedException
IOException
-
schedule
protected QueueTaskFuture schedule(AbstractBuild<?,?> build, Job project, List<Action> list, TaskListener listener) throws InterruptedException, IOException
- Overrides:
schedule
in classBuildTriggerConfig
- Throws:
InterruptedException
IOException
-
getNodes
public Collection<Node> getNodes()
-
-