Class 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. FishEyeRepositoryViewer or BitbucketCloudRepositoryViewer should be preferred, if applicable.

  • Constructor Details

    • GenericRepositoryViewer

      public GenericRepositoryViewer()
      Specifies a generic viewer.
  • Method Details

    • viewerUrl

      public GenericRepositoryViewer viewerUrl(@NotNull @NotNull String viewerUrl)
      Sets url to be used for link generation.
    • repositoryPath

      public GenericRepositoryViewer repositoryPath(@Nullable @Nullable 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 VcsRepositoryViewer