Class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>

java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
com.atlassian.bamboo.specs.api.builders.task.Task<T,E>
com.atlassian.bamboo.specs.builders.task.BaseVcsTask<T,E>
Direct Known Subclasses:
VcsBranchTask, VcsCommitTask, VcsPushTask, VcsTagTask

public abstract class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties> extends com.atlassian.bamboo.specs.api.builders.task.Task<T,E>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected @Nullable com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties
     
    protected @Nullable String
     

    Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task

    conditions, description, requirements, taskEnabled
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Sets the repository for this task to plan's default repository.
    boolean
     
    int
     
    repository(@NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier repositoryIdentifier)
    Sets the repository for this task.
    repository(@NotNull String repositoryName)
    Sets the repository for this task.
    workingSubdirectory(@Nullable String workingSubdirectory)
    Sets the working subdirectory for this task.

    Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task

    build, conditions, description, enabled, requirements, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • defaultRepository

      protected boolean defaultRepository
    • repository

      @Nullable protected @Nullable com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties repository
    • workingSubdirectory

      @Nullable protected @Nullable String workingSubdirectory
  • Constructor Details

    • BaseVcsTask

      public BaseVcsTask()
  • Method Details

    • defaultRepository

      public T defaultRepository()
      Sets the repository for this task to plan's default repository. Default repository is the repository which is the first on the list of plan's repositories.

      Deployment projects don't have a default repository. Because of that, this method can't be used in deployments.

    • repository

      public T repository(@NotNull @NotNull String repositoryName)
      Sets the repository for this task.
    • repository

      public T repository(@NotNull @NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier repositoryIdentifier)
      Sets the repository for this task.
    • workingSubdirectory

      public T workingSubdirectory(@Nullable @Nullable String workingSubdirectory)
      Sets the working subdirectory for this task.

      This method can only be used in deployments. For build plans, the working subdirectory will be extracted from the checkout location of selected repository.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.atlassian.bamboo.specs.api.builders.task.Task<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.atlassian.bamboo.specs.api.builders.task.Task<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>