Package hudson.plugins.git.browser
Class Phabricator
java.lang.Object
hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
hudson.scm.RepositoryBrowser<GitChangeSet>
hudson.plugins.git.browser.GitRepositoryBrowser
hudson.plugins.git.browser.Phabricator
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
Git Browser for Phabricator
- 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 https://[Phabricator URL]/r$repo$shagetDiffLink
(GitChangeSet.Path path) Creates a link to the commit diff.getFileLink
(GitChangeSet.Path path) Creates a link to the file.getRepo()
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
-
Phabricator
-
-
Method Details
-
getRepo
-
getChangeSetLink
Creates a link to the changeset https://[Phabricator URL]/r$repo$sha- Specified by:
getChangeSetLink
in classRepositoryBrowser<GitChangeSet>
- Returns:
- diff link
- Throws:
IOException
- on input or output error
-
getDiffLink
Creates a link to the commit diff. https://[Phabricator URL]/commits/a9182a07750c9a0dfd89a8461adf72ef5ef0885b#[path to file]- 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. https://[Phabricator URL]/a9182a07750c9a0dfd89a8461adf72ef5ef0885b/tree/pom.xml- Specified by:
getFileLink
in classGitRepositoryBrowser
- Parameters:
path
- file path used in diff link- Returns:
- file link
- Throws:
IOException
- on input or output error
-