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 GenericRepositoryViewerProperties |
build() |
GenericRepositoryViewer |
repositoryPath(String repositoryPath)
Sets a relative path in remote repository.
|
GenericRepositoryViewer |
viewerUrl(String viewerUrl)
Sets url to be used for link generation.
|
public GenericRepositoryViewer()
public GenericRepositoryViewer viewerUrl(@NotNull String viewerUrl)
public GenericRepositoryViewer repositoryPath(@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 GenericRepositoryViewerProperties build()
build
in class VcsRepositoryViewer
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.