Class BranchDiscoveryTrait.ExcludeOriginMRBranchesSCMHeadFilter
java.lang.Object
jenkins.scm.api.trait.SCMHeadFilter
io.jenkins.plugins.gitlabbranchsource.BranchDiscoveryTrait.BranchDiscoverySCMHeadFilter
io.jenkins.plugins.gitlabbranchsource.BranchDiscoveryTrait.ExcludeOriginMRBranchesSCMHeadFilter
- Enclosing class:
BranchDiscoveryTrait
public static class BranchDiscoveryTrait.ExcludeOriginMRBranchesSCMHeadFilter
extends BranchDiscoveryTrait.BranchDiscoverySCMHeadFilter
Filter that excludes branches that are also filed as a merge request.
-
Constructor Summary
ConstructorsConstructorDescriptionExcludeOriginMRBranchesSCMHeadFilter(Pattern branchesAlwaysIncludedRegexPattern) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisExcludedBranch(jenkins.scm.api.trait.SCMSourceRequest request, BranchSCMHead head) Strategy-specific exclusion logic, called only for branch heads not covered by the always-included regex.Methods inherited from class io.jenkins.plugins.gitlabbranchsource.BranchDiscoveryTrait.BranchDiscoverySCMHeadFilter
isExcluded
-
Constructor Details
-
ExcludeOriginMRBranchesSCMHeadFilter
-
-
Method Details
-
isExcludedBranch
protected boolean isExcludedBranch(@NonNull jenkins.scm.api.trait.SCMSourceRequest request, @NonNull BranchSCMHead head) Description copied from class:BranchDiscoveryTrait.BranchDiscoverySCMHeadFilterStrategy-specific exclusion logic, called only for branch heads not covered by the always-included regex.- Specified by:
isExcludedBranchin classBranchDiscoveryTrait.BranchDiscoverySCMHeadFilter- Parameters:
request- the current SCM source request.head- the branch head being evaluated.- Returns:
trueif the branch should be excluded from discovery.
-