Class GenericRepositoryViewer


  • public class GenericRepositoryViewer
    extends com.atlassian.bamboo.specs.api.builders.repository.viewer.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. FishEyeRepositoryViewer or BitbucketCloudRepositoryViewer should be preferred, if applicable.

    • Constructor Detail

      • GenericRepositoryViewer

        public GenericRepositoryViewer()
        Specifies a generic viewer.
    • 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:
        build in class com.atlassian.bamboo.specs.api.builders.repository.viewer.VcsRepositoryViewer