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
Publisherthat triggers batch tasks of other projects.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchTaskInvoker.ConfigWhat task to invoke?static classBatchTaskInvoker.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)BuildStepMonitorgetRequiredMonitorService()ResultgetThreshold()booleanisEvenIfUnstable()booleanperform(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:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getProjectActions
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActionsin interfaceBuildStep- Overrides:
getProjectActionsin classBuildStepCompatibilityLayer
-
-