Package hudson.plugins.batch_task
Class BatchTaskInvoker
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- hudson.plugins.batch_task.BatchTaskInvoker
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class BatchTaskInvoker extends Notifier
Publisher
that triggers batch tasks of other projects.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchTaskInvoker.Config
What task to invoke?static class
BatchTaskInvoker.DescriptorImpl
-
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
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description BatchTaskInvoker(BatchTaskInvoker.Config[] configs, boolean evenIfUnstable)
BatchTaskInvoker(BatchTaskInvoker.Config[] configs, Result threshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<BatchTaskInvoker.Config>
getConfigs()
Collection<? extends Action>
getProjectActions(AbstractProject<?,?> project)
BuildStepMonitor
getRequiredMonitorService()
Result
getThreshold()
boolean
isEvenIfUnstable()
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.tasks.Notifier
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
-
-
-
-
Constructor Detail
-
BatchTaskInvoker
@DataBoundConstructor public BatchTaskInvoker(BatchTaskInvoker.Config[] configs, boolean evenIfUnstable)
-
BatchTaskInvoker
public BatchTaskInvoker(BatchTaskInvoker.Config[] configs, Result threshold)
-
-
Method Detail
-
getConfigs
public List<BatchTaskInvoker.Config> getConfigs()
-
getThreshold
public Result getThreshold()
-
isEvenIfUnstable
public boolean isEvenIfUnstable()
-
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
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getProjectActions
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
- Overrides:
getProjectActions
in classBuildStepCompatibilityLayer
-
-