Package hudson.plugins.git.browser
Class TFS2013GitRepositoryBrowser
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<GitChangeSet>
-
- hudson.plugins.git.browser.GitRepositoryBrowser
-
- hudson.plugins.git.browser.TFS2013GitRepositoryBrowser
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
public class TFS2013GitRepositoryBrowser extends GitRepositoryBrowser
Browser for Git repositories on Microsoft Team Foundation Server (TFS) 2013 and higher versions using the same format. This includes Git repositories hosted with the Visual Studio Team Services.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TFS2013GitRepositoryBrowser.TFS2013GitRepositoryBrowserDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TFS2013GitRepositoryBrowser(String repoUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getChangeSetLink(GitChangeSet gitChangeSet)
URL
getDiffLink(GitChangeSet.Path path)
Determines the link to the diff between the version in the specified revision ofGitChangeSet.Path
to its previous version.URL
getFileLink(GitChangeSet.Path path)
Determines the link to a single file under Git.-
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 Detail
-
TFS2013GitRepositoryBrowser
@DataBoundConstructor public TFS2013GitRepositoryBrowser(String repoUrl)
-
-
Method Detail
-
getDiffLink
public URL getDiffLink(GitChangeSet.Path path) throws IOException
Description copied from class:GitRepositoryBrowser
Determines the link to the diff between the version in the specified revision ofGitChangeSet.Path
to its previous version.- Specified by:
getDiffLink
in classGitRepositoryBrowser
- Parameters:
path
- affected file path- Returns:
- null if the browser doesn't have any URL for diff.
- Throws:
IOException
- on input or output error
-
getFileLink
public URL getFileLink(GitChangeSet.Path path) throws IOException
Description copied from class:GitRepositoryBrowser
Determines the link to a single file under Git. This page should display all the past revisions of this file, etc.- Specified by:
getFileLink
in classGitRepositoryBrowser
- Parameters:
path
- affected file path- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
IOException
- on input or output error
-
getChangeSetLink
public URL getChangeSetLink(GitChangeSet gitChangeSet) throws IOException
- Specified by:
getChangeSetLink
in classRepositoryBrowser<GitChangeSet>
- Throws:
IOException
-
-