Package hudson.plugins.git.browser
Class RedmineWeb
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<GitChangeSet>
-
- hudson.plugins.git.browser.GitRepositoryBrowser
-
- hudson.plugins.git.browser.RedmineWeb
-
- All Implemented Interfaces:
ExtensionPoint,Describable<RepositoryBrowser<?>>,Serializable
public class RedmineWeb extends GitRepositoryBrowser
Git Browser for Redmine.- Author:
- mfriedenhagen
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRedmineWeb.RedmineWebDescriptor-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description RedmineWeb(String repoUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLgetChangeSetLink(GitChangeSet changeSet)URLgetDiffLink(GitChangeSet.Path path)Creates a link to the file diff.URLgetFileLink(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
-
RedmineWeb
@DataBoundConstructor public RedmineWeb(String repoUrl)
-
-
Method Detail
-
getChangeSetLink
public URL getChangeSetLink(GitChangeSet changeSet) throws IOException
- Specified by:
getChangeSetLinkin classRepositoryBrowser<GitChangeSet>- Throws:
IOException
-
getDiffLink
public URL getDiffLink(GitChangeSet.Path path) throws IOException
Creates a link to the file diff. https://SERVER/PATH/projects/PROJECT/repository/revisions/a9182a07750c9a0dfd89a8461adf72ef5ef0885b/diff/pom.xml Returns a diff link forEditType.DELETEandEditType.EDIT, forEditType.ADDreturns angetFileLink(hudson.plugins.git.GitChangeSet.Path).- Specified by:
getDiffLinkin 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. https://SERVER/PATH/projects/PROJECT/repository/revisions/a9182a07750c9a0dfd89a8461adf72ef5ef0885b/entry/pom.xml For deleted files just returns a diff link, which will have /dev/null as target file.- Specified by:
getFileLinkin classGitRepositoryBrowser- Parameters:
path- affected file path- Returns:
- file link
- Throws:
IOException- on input or output error
-
-