Package jenkins.scm.api
Interface SCMSourceCriteria
- All Superinterfaces:
Serializable
Filter that selects heads picked up by
SCMSource
out of all the branches and other heads
found in the repository.
Implementations should provide a correct implementation of Object.equals(Object)
and
Object.hashCode()
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A probe for a branch candidate. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isHead
(SCMSourceCriteria.Probe probe, TaskListener listener) Validates if a potential head is actually a head.
-
Method Details
-
isHead
boolean isHead(@NonNull SCMSourceCriteria.Probe probe, @NonNull TaskListener listener) throws IOException Validates if a potential head is actually a head.- Parameters:
probe
- theSCMSourceCriteria.Probe
for the head candidate.listener
- a listener which may receive informational messages explaining why a head was accepted or rejected- Returns:
true
iff the candidate should be included in the list of heads built by Jenkins.- Throws:
IOException
- if an error occurs while performing the operation.
-