Class GitLab

    • Constructor Detail

      • GitLab

        @DataBoundConstructor
        public GitLab​(String repoUrl)
    • Method Detail

      • setVersion

        @DataBoundSetter
        public void setVersion​(String version)
      • getVersion

        public String getVersion()
      • getDiffLink

        public URL getDiffLink​(GitChangeSet.Path path)
                        throws IOException
        Creates a link to the commit diff. v < 3.0: [GitLab URL]/commits/[Hash]#[File path] v < 8.0: [GitLab URL]/commit/[Hash]#[File path] else: [GitLab URL]/commit/[Hash]#diff-[index]
        Specified by:
        getDiffLink in class GitRepositoryBrowser
        Parameters:
        path - file path used in diff link
        Returns:
        diff link
        Throws:
        IOException - on input or output error
      • getFileLink

        public URL getFileLink​(GitChangeSet.Path path)
                        throws IOException
        Creates a link to the file. v ≤ 4.2: [GitLab URL]tree/[Hash]/[File path] v < 5.1: [GitLab URL][Hash]/tree/[File path] else: [GitLab URL]blob/[Hash]/[File path]
        Specified by:
        getFileLink in class GitRepositoryBrowser
        Parameters:
        path - file path used in diff link
        Returns:
        file link
        Throws:
        IOException - on input or output error