Class SCMHeadObserver.Collector

java.lang.Object
jenkins.scm.api.SCMHeadObserver
jenkins.scm.api.SCMHeadObserver.Collector
Enclosing class:
SCMHeadObserver

public static class SCMHeadObserver.Collector extends SCMHeadObserver
An observer that collects the observed SCMHeads and SCMRevisions.
  • Constructor Details

    • Collector

      public Collector()
  • Method Details

    • observe

      public void observe(@NonNull SCMHead head, @NonNull SCMRevision revision)
      Observes a head and current revision.
      Specified by:
      observe in class SCMHeadObserver
      Parameters:
      head - the head.
      revision - the revision.
    • result

      @NonNull public Map<SCMHead,SCMRevision> result()
      Returns the collected results.
      Returns:
      the collected results.