Interface BitbucketSCMHeadDiscoveryHandler


public interface BitbucketSCMHeadDiscoveryHandler
Handles the discovery of different head types to be used by the BitbucketSCMSource.retrieve(SCMSourceCriteria, SCMHeadObserver, SCMHeadEvent, TaskListener) method as part of processing a request.
Since:
4.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Stream<? extends jenkins.scm.api.SCMHead>
     
    jenkins.scm.api.SCMRevision
    toRevision(jenkins.scm.api.SCMHead head)
    Creates a revision for the specified head.
  • Method Details

    • discoverHeads

      Stream<? extends jenkins.scm.api.SCMHead> discoverHeads()
      Returns:
      as stream of heads to be used for processing the source request
    • toRevision

      jenkins.scm.api.SCMRevision toRevision(jenkins.scm.api.SCMHead head)
      Creates a revision for the specified head.
      Parameters:
      head - the head to create a revision for
      Returns:
      the revision for the specified head