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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanisExcluded(SCMSourceRequest request, SCMHead head) Checks if the suppliedSCMHeadis 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 suppliedSCMHeadis excluded from the specifiedSCMSourceRequest.- Parameters:
request- theSCMSourceRequest.head- theSCMHead.- Returns:
trueif and only if theSCMHeadis excluded from the request.- Throws:
IOException- if there was an I/O error when determining exclusion.InterruptedException- if interrupted while determining exclusion.
-