Package jenkins.scm.impl.subversion
Class SubversionSCMSource.ListenerImpl
- java.lang.Object
-
- hudson.scm.SubversionRepositoryStatus.Listener
-
- jenkins.scm.impl.subversion.SubversionSCMSource.ListenerImpl
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- SubversionSCMSource
@Extension public static class SubversionSCMSource.ListenerImpl extends SubversionRepositoryStatus.Listener
We need to listen out for post-commit hooks
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static int
RECENT_SIZE
Maximum number of repositories to retain...
-
Constructor Summary
Constructors Constructor Description ListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onNotify(UUID uuid, long revision, Set<String> paths)
Called when a post-commit hook notification has been received.
-
-
-
Field Detail
-
RECENT_SIZE
public static final int RECENT_SIZE
Maximum number of repositories to retain... since we should only ever have 1-2 relevant, this size shouldn't matter much, but keep it finite to prevent memory stealing.- See Also:
- Constant Field Values
-
-
Method Detail
-
onNotify
public boolean onNotify(UUID uuid, long revision, Set<String> paths)
Called when a post-commit hook notification has been received.- Specified by:
onNotify
in classSubversionRepositoryStatus.Listener
- Parameters:
uuid
- the UUID of the repository against which the hook was received.revision
- the revision (if known) or-1
if unknown.- Returns:
true
if a match for the UUID was found and something was scheduled as a result.
-
-