Package hudson.plugins.git.browser
Class Stash
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<GitChangeSet>
-
- hudson.plugins.git.browser.GitRepositoryBrowser
-
- hudson.plugins.git.browser.Stash
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
public class Stash extends GitRepositoryBrowser
Stash Browser URLs- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Stash.StashDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getChangeSetLink(GitChangeSet changeSet)
Creates a link to the change set http://[Stash URL]/commits/[commit]URL
getDiffLink(GitChangeSet.Path path)
Creates a link to the file diff.URL
getFileLink(GitChangeSet.Path path)
Creates a link to the file.-
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
-
Stash
@DataBoundConstructor public Stash(String repoUrl)
-
-
Method Detail
-
getChangeSetLink
public URL getChangeSetLink(GitChangeSet changeSet) throws IOException
Creates a link to the change set http://[Stash URL]/commits/[commit]- Specified by:
getChangeSetLink
in classRepositoryBrowser<GitChangeSet>
- Parameters:
changeSet
- commit hash- Returns:
- change set link
- Throws:
IOException
- on input or output error
-
getDiffLink
public URL getDiffLink(GitChangeSet.Path path) throws IOException
Creates a link to the file diff.http://[Stash URL]/diff/[path]?at=[commit]&until=[commit]
- Specified by:
getDiffLink
in classGitRepositoryBrowser
- Parameters:
path
- affected file path- 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. http://[Stash URL]/browse/[path]?at=[commit]- Specified by:
getFileLink
in classGitRepositoryBrowser
- Parameters:
path
- affected file path- Returns:
- diff link
- Throws:
IOException
- on input or output error
-
-