Class BitbucketCloudVcsRepositoryViewer
java.lang.Object
com.atlassian.bamboo.plugins.bitbucket.v2.viewer.BitbucketCloudVcsRepositoryViewer
- All Implemented Interfaces:
VcsRepositoryViewer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable URIgetUriForRepositoryData(VcsRepositoryData vcsRepositoryData) @Nullable StringgetWebRepositoryUrlForFile(@NotNull CommitFile file, @NotNull VcsRepositoryData repositoryData) Generate the link to a given file in a given repository@Nullable StringgetWebRepositoryUrlForFileDiff(@NotNull CommitFile file, @NotNull VcsRepositoryData repositoryData) Generate the link to a given file, showing changes in given revision.@Nullable StringgetWebRepositoryUrlForFileRevision(@NotNull CommitFile file, @NotNull VcsRepositoryData repositoryData) Generate the link to a given file in a given repository at given revision,@Nullable StringgetWebRepositoryUrlForRevision(@NotNull String revisionId, @NotNull VcsRepositoryData repositoryData) Provide the url to link to the given revision in the web repositorygetWebRepositoryUrlForRevisions(Stream<String> revisionIds, VcsRepositoryData repositoryDefinition) Provide the urls to link all the given commits in the web repositoryvoidsetCustomVariableContext(CustomVariableContext customVariableContext)
-
Constructor Details
-
BitbucketCloudVcsRepositoryViewer
public BitbucketCloudVcsRepositoryViewer()
-
-
Method Details
-
getWebRepositoryUrlForRevision
@Nullable public @Nullable String getWebRepositoryUrlForRevision(@NotNull @NotNull String revisionId, @NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:VcsRepositoryViewerProvide the url to link to the given revision in the web repository- Specified by:
getWebRepositoryUrlForRevisionin interfaceVcsRepositoryViewer- Parameters:
revisionId- the revision to links to. Should not be blank or null.repositoryData- the repository type the commit came from- Returns:
- a full url string.
-
getWebRepositoryUrlForRevisions
@NotNull public @NotNull Map<String,String> getWebRepositoryUrlForRevisions(Stream<String> revisionIds, VcsRepositoryData repositoryDefinition) Description copied from interface:VcsRepositoryViewerProvide the urls to link all the given commits in the web repository- Specified by:
getWebRepositoryUrlForRevisionsin interfaceVcsRepositoryViewer- Parameters:
revisionIds- to generate links for. Stream should not contain empty values or nulls.repositoryDefinition- the repository type the commit came from- Returns:
- a map of the commit to its url.
-
getWebRepositoryUrlForFile
@Nullable public @Nullable String getWebRepositoryUrlForFile(@NotNull @NotNull CommitFile file, @NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:VcsRepositoryViewerGenerate the link to a given file in a given repository- Specified by:
getWebRepositoryUrlForFilein interfaceVcsRepositoryViewer- Parameters:
file- The file we want to link to.repositoryData- For the build (and hense the repository file belongs to).- Returns:
- The url
-
getWebRepositoryUrlForFileRevision
@Nullable public @Nullable String getWebRepositoryUrlForFileRevision(@NotNull @NotNull CommitFile file, @NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:VcsRepositoryViewerGenerate the link to a given file in a given repository at given revision,- Specified by:
getWebRepositoryUrlForFileRevisionin interfaceVcsRepositoryViewer- Parameters:
file- The file we want to link to.repositoryData- For the build (and hense the repository file belongs to).- Returns:
- The url
-
getWebRepositoryUrlForFileDiff
@Nullable public @Nullable String getWebRepositoryUrlForFileDiff(@NotNull @NotNull CommitFile file, @NotNull @NotNull VcsRepositoryData repositoryData) Description copied from interface:VcsRepositoryViewerGenerate the link to a given file, showing changes in given revision.- Specified by:
getWebRepositoryUrlForFileDiffin interfaceVcsRepositoryViewer- Parameters:
file- The file we want to link to.repositoryData- For the build (and hense the repository file belongs to).- Returns:
- The url
-
getUriForRepositoryData
-
setCustomVariableContext
-