Class BranchDiscoveryTrait.ExcludeOriginMRBranchesSCMHeadFilter
java.lang.Object
jenkins.scm.api.trait.SCMHeadFilter
io.jenkins.plugins.gitlabbranchsource.BranchDiscoveryTrait.ExcludeOriginMRBranchesSCMHeadFilter
- Enclosing class:
- BranchDiscoveryTrait
public static class BranchDiscoveryTrait.ExcludeOriginMRBranchesSCMHeadFilter
extends jenkins.scm.api.trait.SCMHeadFilter
Filter that excludes branches that are also filed as a merge request.
-
Constructor Summary
ConstructorDescriptionExcludeOriginMRBranchesSCMHeadFilter
(Pattern branchesAlwaysIncludedRegexPattern) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
isExcluded
(jenkins.scm.api.trait.SCMSourceRequest request, jenkins.scm.api.SCMHead head)
-
Constructor Details
-
ExcludeOriginMRBranchesSCMHeadFilter
Constructor- Parameters:
branchesAlwaysIncludedRegexPattern
- the branchesAlwaysIncludedRegexPattern.
-
-
Method Details
-
isExcluded
public boolean isExcluded(@NonNull jenkins.scm.api.trait.SCMSourceRequest request, @NonNull jenkins.scm.api.SCMHead head) - Specified by:
isExcluded
in classjenkins.scm.api.trait.SCMHeadFilter
-