Class GenericRepositoryViewer
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<VcsRepositoryViewerProperties>
com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer
com.atlassian.bamboo.specs.builders.repository.viewer.GenericRepositoryViewer
Represents a generic viewer.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull GenericRepositoryViewerProperties
build()
repositoryPath
(@Nullable String repositoryPath) Sets a relative path in remote repository.Sets url to be used for link generation.
-
Constructor Details
-
GenericRepositoryViewer
public GenericRepositoryViewer()Specifies a generic viewer.
-
-
Method Details
-
viewerUrl
Sets url to be used for link generation. -
repositoryPath
Sets a relative path in remote repository. By default, it is empty.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.
-
build
- Specified by:
build
in classVcsRepositoryViewer
-