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

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean defaultRepository  
      protected @Nullable com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryIdentifierProperties repository  
      protected @Nullable java.lang.String workingSubdirectory  
      • Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task

        conditions, description, requirements, taskEnabled
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseVcsTask()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T defaultRepository()
      Sets the repository for this task to plan's default repository.
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      T repository​(@NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier repositoryIdentifier)
      Sets the repository for this task.
      T repository​(@NotNull java.lang.String repositoryName)
      Sets the repository for this task.
      T workingSubdirectory​(@Nullable java.lang.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 Detail

      • defaultRepository

        protected boolean defaultRepository
      • repository

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

        @Nullable
        protected @Nullable java.lang.String workingSubdirectory
    • Constructor Detail

      • BaseVcsTask

        public BaseVcsTask()
    • Method Detail

      • 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 java.lang.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 java.lang.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​(java.lang.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>