Package jenkins.scm.api.trait
Class SCMHeadFilter
java.lang.Object
jenkins.scm.api.trait.SCMHeadFilter
A
SCMSourceRequest
dependent filter of SCMHead
instances. Typically these filters may need to
make remote requests in order to determine exclusion.
If multiple filters are used, if any exclude then the head is excluded.- Since:
- 3.4.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
isExcluded
(SCMSourceRequest request, SCMHead head) Checks if the suppliedSCMHead
is excluded from the specifiedSCMSourceRequest
.
-
Constructor Details
-
SCMHeadFilter
public SCMHeadFilter()
-
-
Method Details
-
isExcluded
public abstract boolean isExcluded(@NonNull SCMSourceRequest request, @NonNull SCMHead head) throws IOException, InterruptedException Checks if the suppliedSCMHead
is excluded from the specifiedSCMSourceRequest
.- Parameters:
request
- theSCMSourceRequest
.head
- theSCMHead
.- Returns:
true
if and only if theSCMHead
is excluded from the request.- Throws:
IOException
- if there was an I/O error when determining exclusion.InterruptedException
- if interrupted while determining exclusion.
-