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 Details

  • Constructor Details

    • Task

      protected Task()
  • Method Details

    • description

      public T description(String description)
      Sets the task description.
    • enabled

      public T enabled(boolean taskEnabled)
      Enabled/disables that task. Task is enabled by default.
    • requirements

      public T requirements(Requirement... requirements)
      Adds custom requirements to this task. All the custom requirements from tasks will be added to Job's or Environment's requirements list.
      See Also:
      • Job.requirements
      • Environment.requirements
    • conditions

      public T conditions(TaskCondition<?>... conditions)
      Adds conditions to this task.
    • build

      @NotNull protected abstract P build()
      Specified by:
      build in class EntityPropertiesBuilder<P extends TaskProperties>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object