Interface CommitUrlProvider

All Superinterfaces:
BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, InitablePluginModule, RenderableBuildConfiguration, Serializable, WebRepositoryViewer
All Known Subinterfaces:
DeploymentsAwareCommitUrlProvider
All Known Implementing Classes:
DefaultWebRepositoryViewer, FisheyeWebRepositoryViewer, LegacyStashWebRepositoryViewer, NoWebRepositoryViewer, StashWebRepositoryViewer

public interface CommitUrlProvider extends WebRepositoryViewer
If implementing this interface Bamboo's notifications can make use of it to provide web repository links within html emails
  • Method Details

    • getWebRepositoryUrlForCommit

      @Nullable @Nullable String getWebRepositoryUrlForCommit(Commit commit, @NotNull @NotNull RepositoryData repositoryData)
      Provide the url to link to the given commit in the web repository
      Parameters:
      commit - the commit to links to
      repositoryData - the repository type the commit came from
      Returns:
      a full url string.
    • getWebRepositoryUrlForRevision

      @Nullable @Nullable String getWebRepositoryUrlForRevision(String revisionId, @NotNull @NotNull RepositoryData repositoryData)
      Provide the url to link to the given revision in the web repository
      Parameters:
      revisionId - the revision to links to
      repositoryData - the repository type the commit came from
      Returns:
      a full url string.
    • getWebRepositoryUrlForCommits

      Map<Commit,String> getWebRepositoryUrlForCommits(Collection<Commit> commits, RepositoryData repositoryDefinition)
      Provide the urls to link all the given commits in the web repository
      Parameters:
      commits - to generate links for
      repositoryDefinition - the repository type the commit came from
      Returns:
      a map of the commit to its url.