Class BranchDiscoveryTrait.OnlyOriginMRBranchesSCMHeadFilter

  • Enclosing class:
    BranchDiscoveryTrait

    public static class BranchDiscoveryTrait.OnlyOriginMRBranchesSCMHeadFilter
    extends jenkins.scm.api.trait.SCMHeadFilter
    Filter that excludes branches that are not also filed as a merge request.
    • Constructor Detail

      • OnlyOriginMRBranchesSCMHeadFilter

        public OnlyOriginMRBranchesSCMHeadFilter​(Pattern branchesAlwaysIncludedRegexPattern)
        Constructor
        Parameters:
        branchesAlwaysIncludedRegexPattern - the branchesAlwaysIncludedRegexPattern.
    • Method Detail

      • isExcluded

        public boolean isExcluded​(@NonNull
                                  jenkins.scm.api.trait.SCMSourceRequest request,
                                  @NonNull
                                  jenkins.scm.api.SCMHead head)
        Specified by:
        isExcluded in class jenkins.scm.api.trait.SCMHeadFilter