Package hudson.plugins.batch_task
Class BatchTaskProperty
- java.lang.Object
-
- hudson.model.JobProperty<AbstractProject<?,?>>
-
- hudson.plugins.batch_task.BatchTaskProperty
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<JobProperty<?>>
,ReconfigurableDescribable<JobProperty<?>>
,BuildStep
public class BatchTaskProperty extends JobProperty<AbstractProject<?,?>>
Batch tasks added asJobProperty
.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchTaskProperty.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static BatchTaskProperty.DescriptorImpl
DESCRIPTOR
-
Fields inherited from class hudson.model.JobProperty
owner
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description BatchTaskProperty(BatchTask... tasks)
BatchTaskProperty(Collection<BatchTask> tasks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchTask
findNearestTask(String name)
Finds theBatchTask
that has the closest name.BatchTaskProperty.DescriptorImpl
getDescriptor()
Collection<? extends Action>
getJobActions(AbstractProject<?,?> job)
AbstractProject<?,?>
getOwner()
BatchTask
getTask(String name)
List<BatchTask>
getTasks()
void
removeTask(BatchTask t)
protected void
setOwner(AbstractProject<?,?> owner)
-
Methods inherited from class hudson.model.JobProperty
getJobAction, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure
-
-
-
-
Field Detail
-
DESCRIPTOR
@Extension public static final BatchTaskProperty.DescriptorImpl DESCRIPTOR
-
-
Constructor Detail
-
BatchTaskProperty
public BatchTaskProperty(BatchTask... tasks)
-
BatchTaskProperty
public BatchTaskProperty(Collection<BatchTask> tasks)
-
-
Method Detail
-
setOwner
protected void setOwner(AbstractProject<?,?> owner)
- Overrides:
setOwner
in classJobProperty<AbstractProject<?,?>>
-
getOwner
public AbstractProject<?,?> getOwner()
-
removeTask
public void removeTask(BatchTask t) throws IOException
- Throws:
IOException
-
findNearestTask
public BatchTask findNearestTask(String name)
Finds theBatchTask
that has the closest name. Used for error diagnostics.
-
getJobActions
public Collection<? extends Action> getJobActions(AbstractProject<?,?> job)
- Overrides:
getJobActions
in classJobProperty<AbstractProject<?,?>>
-
getDescriptor
public BatchTaskProperty.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<JobProperty<?>>
- Overrides:
getDescriptor
in classJobProperty<AbstractProject<?,?>>
-
-