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 TypeMethodDescriptionStream<? extends jenkins.scm.api.SCMHead>jenkins.scm.api.SCMRevisiontoRevision(jenkins.scm.api.SCMHead head) Creates arevisionfor the specified head.
-
Method Details
-
discoverHeads
Stream<? extends jenkins.scm.api.SCMHead> discoverHeads()- Returns:
- as stream of
headsto be used for processing the source request
-
toRevision
jenkins.scm.api.SCMRevision toRevision(jenkins.scm.api.SCMHead head) Creates arevisionfor the specified head.- Parameters:
head- the head to create a revision for- Returns:
- the revision for the specified head
-