Package hudson.plugins.git.browser
Class GitLab
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
hudson.scm.RepositoryBrowser<GitChangeSet>
hudson.plugins.git.browser.GitRepositoryBrowser
hudson.plugins.git.browser.GitLab
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
Git Browser for GitLab
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChangeSetLink
(GitChangeSet changeSet) Creates a link to the changeset v < 3.0: [GitLab URL]/commits/[Hash] else: [GitLab URL]/commit/[Hash]getDiffLink
(GitChangeSet.Path path) Creates a link to the commit diff.getFileLink
(GitChangeSet.Path path) Creates a link to the file.void
setVersion
(String version) Methods inherited from class hudson.plugins.git.browser.GitRepositoryBrowser
encodeURL, getChangeSetLink, getIndexOfPath, getNormalizeUrl, getRepoUrl, getUrl, initialChecksAndReturnOk, validateUrl
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
GitLab
-
GitLab
Deprecated.
-
-
Method Details
-
setVersion
-
getVersion
-
getChangeSetLink
Creates a link to the changeset v < 3.0: [GitLab URL]/commits/[Hash] else: [GitLab URL]/commit/[Hash]- Specified by:
getChangeSetLink
in classRepositoryBrowser<GitChangeSet>
- Returns:
- diff link
- Throws:
IOException
- on input or output error
-
getDiffLink
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 classGitRepositoryBrowser
- Parameters:
path
- file path used in diff link- Returns:
- diff link
- Throws:
IOException
- on input or output error
-
getFileLink
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 classGitRepositoryBrowser
- Parameters:
path
- file path used in diff link- Returns:
- file link
- Throws:
IOException
- on input or output error
-