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
  • Field Details

    • 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:
  • Constructor Details

    • ListenerImpl

      public ListenerImpl()
  • Method Details

    • 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 class SubversionRepositoryStatus.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.