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
public class Phabricator extends GitRepositoryBrowser
Git Browser for Phabricator- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPhabricator.PhabricatorDescriptor-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description Phabricator(String repoUrl, String repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetChangeSetLink(GitChangeSet changeSet)Creates a link to the changeset https://[Phabricator URL]/r$repo$shaURLgetDiffLink(GitChangeSet.Path path)Creates a link to the commit diff.URLgetFileLink(GitChangeSet.Path path)Creates a link to the file.StringgetRepo()-
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
-
-
-
-
Method Detail
-
getRepo
public String getRepo()
-
getChangeSetLink
public URL getChangeSetLink(GitChangeSet changeSet) throws IOException
Creates a link to the changeset https://[Phabricator URL]/r$repo$sha- Specified by:
getChangeSetLinkin classRepositoryBrowser<GitChangeSet>- Returns:
- diff link
- Throws:
IOException- on input or output error
-
getDiffLink
public URL getDiffLink(GitChangeSet.Path path) throws IOException
Creates a link to the commit diff. https://[Phabricator URL]/commits/a9182a07750c9a0dfd89a8461adf72ef5ef0885b#[path to file]- Specified by:
getDiffLinkin classGitRepositoryBrowser- 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. https://[Phabricator URL]/a9182a07750c9a0dfd89a8461adf72ef5ef0885b/tree/pom.xml- Specified by:
getFileLinkin classGitRepositoryBrowser- Parameters:
path- file path used in diff link- Returns:
- file link
- Throws:
IOException- on input or output error
-
-