Package hudson.scm.browsers
Class CollabNetSVN
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<RepositoryBrowser<?>>
-
- hudson.scm.RepositoryBrowser<SubversionChangeLogSet.LogEntry>
-
- hudson.scm.SubversionRepositoryBrowser
-
- hudson.scm.browsers.CollabNetSVN
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<RepositoryBrowser<?>>
,Serializable
public class CollabNetSVN extends SubversionRepositoryBrowser
RepositoryBrowser
implementation for CollabNet hosted Subversion repositories. This enables Jenkins to integrate with the repository browsers built-in to CollabNet-powered sites such as Java.net and Tigris.org.- Author:
- Daniel Dyer
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CollabNetSVN.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description CollabNetSVN(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet)
URL
getDiffLink(SubversionChangeLogSet.Path path)
Determines the link to the diff between the version in the specified revision ofSubversionChangeLogSet.Path
to its previous version.URL
getFileLink(SubversionChangeLogSet.Path path)
Determines the link to a single file under Subversion.-
Methods inherited from class hudson.scm.RepositoryBrowser
all, normalizeToEndWithSlash, trimHeadSlash
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
url
public final URL url
-
-
Constructor Detail
-
CollabNetSVN
@DataBoundConstructor public CollabNetSVN(URL url)
- Parameters:
url
- The repository browser URL for the root of the project. For example, a Java.net project called "myproject" would use https://myproject.dev.java.net/source/browse/myproject
-
-
Method Detail
-
getDiffLink
public URL getDiffLink(SubversionChangeLogSet.Path path) throws IOException
Determines the link to the diff between the version in the specified revision ofSubversionChangeLogSet.Path
to its previous version.- Specified by:
getDiffLink
in classSubversionRepositoryBrowser
- Returns:
- null if the browser doesn't have any URL for diff.
- Throws:
IOException
-
getFileLink
public URL getFileLink(SubversionChangeLogSet.Path path) throws IOException
Determines the link to a single file under Subversion. This page should display all the past revisions of this file, etc.- Specified by:
getFileLink
in classSubversionRepositoryBrowser
- Returns:
- null if the browser doesn't have any suitable URL.
- Throws:
IOException
-
getChangeSetLink
public URL getChangeSetLink(SubversionChangeLogSet.LogEntry changeSet) throws IOException
- Specified by:
getChangeSetLink
in classRepositoryBrowser<SubversionChangeLogSet.LogEntry>
- Throws:
IOException
-
-