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
-
public class GenericRepositoryViewer extends VcsRepositoryViewer
Represents a generic viewer.Generic viewer is simplistic implementation of commit link generator done on the 'best effort' basis. More specialised implementations, e.g.
FishEyeRepositoryViewerorBitbucketCloudRepositoryViewershould be preferred, if applicable.
-
-
Constructor Summary
Constructors Constructor Description GenericRepositoryViewer()Specifies a generic viewer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull GenericRepositoryViewerPropertiesbuild()GenericRepositoryViewerrepositoryPath(@Nullable java.lang.String repositoryPath)Sets a relative path in remote repository.GenericRepositoryViewerviewerUrl(@NotNull java.lang.String viewerUrl)Sets url to be used for link generation.
-
-
-
Method Detail
-
viewerUrl
public GenericRepositoryViewer viewerUrl(@NotNull @NotNull java.lang.String viewerUrl)
Sets url to be used for link generation.
-
repositoryPath
public GenericRepositoryViewer repositoryPath(@Nullable @Nullable java.lang.String 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
@NotNull protected @NotNull GenericRepositoryViewerProperties build()
- Specified by:
buildin classVcsRepositoryViewer
-
-