Interface VcsRepositoryManager

All Known Implementing Classes:
VcsRepositoryManagerImpl

public interface VcsRepositoryManager
Provides access to repository plugins.
Since:
5.14
  • Method Details

    • getAvailableRepositoryDescriptors

      @NotNull @NotNull List<VcsRepositoryModuleDescriptor> getAvailableRepositoryDescriptors()
      Returns a list of available (i.e. installed and enabled) VcsRepositoryModuleDescriptor objects.
      Returns:
      Immutable list of VcsRepositoryModuleDescriptor sorted by weight. Empty list if none exists.
      Since:
      5.14
    • getVcsRepositoryModuleDescriptor

      @Nullable @Nullable VcsRepositoryModuleDescriptor getVcsRepositoryModuleDescriptor(@NotNull @NotNull String pluginKey)
      Return module descriptor for given plugin key or null if it doesn't exists or plugin is disabled.
      Parameters:
      pluginKey - plugin key
    • getRepositoryModuleDescriptorByMavenScmKey

      @Nullable @Nullable VcsRepositoryModuleDescriptor getRepositoryModuleDescriptorByMavenScmKey(@NotNull @NotNull String mavenScmKey, @NotNull @NotNull String preferredPluginKey)
    • supportsDivergentBranches

      default boolean supportsDivergentBranches(@NotNull @NotNull String pluginKey)
      Check if VCS plugin supports divergent branches. This method only checks the general capability, in order to check if the current configuration allows them use divergentBranchesEnabled(VcsRepositoryData)
      Parameters:
      pluginKey - plugin key
      Returns:
      true if plugin supports different plan branch structure and settings for Bamboo Specs at VCS branch.
      Since:
      7.0
    • divergentBranchesEnabled

      default boolean divergentBranchesEnabled(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Check if VCS repository supports divergent branches and if the configuration allows them.
      Parameters:
      vcsRepositoryData - repository data
      Returns:
      true if the repository supports different plan branch structure and settings for Bamboo Specs at VCS branch.
      Since:
      9.0
    • getIndexKey

      default Optional<VcsLocationIndexKey> getIndexKey(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
      Get index key of a repository location, if defined.
      Parameters:
      vcsRepositoryData - repository data
      Returns:
      index key of the repository location
      Since:
      12.0