Interface BranchAwareRepository

All Superinterfaces:
BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, DescriptionProvider, InitablePluginModule, NameProvider, RenderableBuildConfiguration, Repository, RepositoryV2, Serializable
All Known Subinterfaces:
BitbucketDelegatedRepository, BranchDetectionCapableRepository, BranchInformationProvider, BranchMergingAwareRepository, StashRepository
All Known Implementing Classes:
BitbucketRepository, GitHubRepository, GitRepository, StashRepositoryImpl, SvnRepository

public interface BranchAwareRepository extends Repository
Repository that supports setting and getting the current branch.
Since:
4.0
See Also:
  • Method Details

    • getVcsBranch

      @NotNull @NotNull VcsBranch getVcsBranch()
      Returns:
      the branch being used currently by this repository.
    • setVcsBranch

      void setVcsBranch(@NotNull @NotNull VcsBranch branch)
      Set and prepare the repository for using an arbitrary branch. Generally the subsequent getVcsBranch should return the same branch name.