public class GenericRepositoryViewer extends VcsRepositoryViewer
Generic viewer is simplistic implementation of commit link generator done on the 'best effort' basis.
More specialised implementations, e.g. FishEyeRepositoryViewer
or BitbucketCloudRepositoryViewer
should be preferred, if applicable.
Constructor and Description |
---|
GenericRepositoryViewer()
Specifies a generic viewer.
|
Modifier and Type | Method and Description |
---|---|
protected @NotNull GenericRepositoryViewerProperties |
build() |
GenericRepositoryViewer |
repositoryPath(@Nullable String repositoryPath)
Sets a relative path in remote repository.
|
GenericRepositoryViewer |
viewerUrl(@NotNull String viewerUrl)
Sets url to be used for link generation.
|
public GenericRepositoryViewer()
public GenericRepositoryViewer viewerUrl(@NotNull @NotNull String viewerUrl)
public GenericRepositoryViewer repositoryPath(@Nullable @Nullable String repositoryPath)
When checking out a module from a repository, for example SVN repository, a file path shown in Bamboo is relative to that module and not the repository root. If that's the case, the missing part of the path needs to be defined here.
@NotNull protected @NotNull GenericRepositoryViewerProperties build()
build
in class VcsRepositoryViewer
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.