Class Task<T extends Task<T,P>,P extends TaskProperties>
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<T,P>
- Direct Known Subclasses:
AbstractDockerTask
,AntTask
,AnyTask
,ArtifactDownloaderTask
,BaseNodeTask
,BaseSshTask
,BaseVcsTask
,BuildWarningParserTask
,CleanWorkingDirectoryTask
,CommandTask
,DumpVariablesTask
,FastlaneTask
,InjectVariablesTask
,MavenDependenciesProcessorTask
,MavenTask
,MochaParserTask
,MsBuildTask
,NUnitRunnerTask
,ScriptTask
,TestParserTask
,VcsCheckoutTask
public abstract class Task<T extends Task<T,P>,P extends TaskProperties>
extends EntityPropertiesBuilder<P>
Represents a Bamboo task. Task is an unit of work within Job.
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<ConditionProperties>
protected String
protected List<RequirementProperties>
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract P
build()
conditions
(TaskCondition<?>... conditions) Adds conditions to this task.description
(String description) Sets the task description.enabled
(boolean taskEnabled) Enabled/disables that task.boolean
int
hashCode()
requirements
(Requirement... requirements) Adds custom requirements to this task.toString()
-
Field Details
-
taskEnabled
protected boolean taskEnabled -
description
-
conditions
-
requirements
-
-
Constructor Details
-
Task
protected Task()
-
-
Method Details
-
description
Sets the task description. -
enabled
Enabled/disables that task. Task is enabled by default. -
requirements
Adds custom requirements to this task. All the custom requirements from tasks will be added toJob
's orEnvironment
's requirements list.- See Also:
-
Job.requirements
Environment.requirements
-
conditions
Adds conditions to this task. -
build
- Specified by:
build
in classEntityPropertiesBuilder<P extends TaskProperties>
-
equals
-
hashCode
public int hashCode() -
toString
-