com.atlassian.bamboo.webrepository
Interface CommitUrlProvider
- All Superinterfaces:
- BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, ConvertibleFromConfig, InitablePluginModule, RenderableBuildConfiguration, java.io.Serializable, WebRepositoryViewer
- All Known Implementing Classes:
- DefaultWebRepositoryViewer, FisheyeWebRepositoryViewer, HgWebRepositoryViewer
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
getWebRepositoryUrlForCommit
@Nullable
java.lang.String getWebRepositoryUrlForCommit(Commit commit,
@NotNull
RepositoryData repositoryData)
- Provide the url to link to the given commit in the web repository
- Parameters:
commit
- the commit to links torepositoryData
- the repository type the commit came from
- Returns:
- a full url string.
getWebRepositoryUrlForRevision
@Nullable
java.lang.String getWebRepositoryUrlForRevision(java.lang.String revisionId,
@NotNull
RepositoryData repositoryData)
- Provide the url to link to the given revision in the web repository
- Parameters:
revisionId
- the revision to links torepositoryData
- the repository type the commit came from
- Returns:
- a full url string.
Copyright © 2012 Atlassian. All Rights Reserved.