Interface TaskDefinition

All Superinterfaces:
EntityWithOid, ImmutableEntityWithOid, PluginKeyProvider, Serializable, TaskIdentifier
All Known Subinterfaces:
DecoratedTaskDefinition<T>, RuntimeTaskDefinition
All Known Implementing Classes:
DecoratedTaskDefinitionImpl, ImmutableTaskDefinition, RuntimeTaskDefinitionImpl, TaskDefinitionImpl

@PublicApi public interface TaskDefinition extends TaskIdentifier, EntityWithOid, Serializable
A definition of one configuration of a TaskType
Since:
3.1
See Also:
  • Field Details

  • Method Details

    • setUserDescription

      void setUserDescription(@Nullable @Nullable String userDescription)
    • setEnabled

      void setEnabled(boolean isEnabled)
      Tells bamboo whether this task should run as a part of this build or not.
      Since:
      4.4
    • setFinalising

      void setFinalising(boolean finalising)
    • getRootDirectorySelector

      @NotNull @NotNull TaskRootDirectorySelector getRootDirectorySelector()
      Returns:
      data defining tasks' root directory
      Since:
      3.3
    • setRootDirectorySelector

      void setRootDirectorySelector(@NotNull @NotNull TaskRootDirectorySelector taskRootDirectorySelector)
      Parameters:
      taskRootDirectorySelector -
      Since:
      3.3
    • getConfiguration

      @NotNull @NotNull Map<String,String> getConfiguration()
      Represents the raw configuration data for this configuration. No variables are substituted.
      Returns:
      the plugin defined configuration for this task
    • setConfiguration

      void setConfiguration(@NotNull @NotNull Map<String,String> configuration)
    • getEntityType

      default BambooEntityType getEntityType()
      Description copied from interface: ImmutableEntityWithOid
      Entity type of this object, used in BambooEntityOid.
      Specified by:
      getEntityType in interface ImmutableEntityWithOid
    • getConditions

      @NotNull @NotNull List<TaskConditionConfig> getConditions()
      Returns:
      task conditions. UI supports only one condition per task.
    • setConditions

      void setConditions(@NotNull @NotNull List<TaskConditionConfig> conditions)