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
FieldsModifier and TypeFieldDescriptionstatic final int
Maximum number of repositories to retain... -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
RECENT_SIZE
public static final int RECENT_SIZEMaximum 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:
-
-
Constructor Details
-
ListenerImpl
public ListenerImpl()
-
-
Method Details
-
onNotify
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.
-