Class PullRequestTargetBranchNotMatchesFilter


  • public class PullRequestTargetBranchNotMatchesFilter
    extends PullRequestTargetBranchMatchesFilter
    A SCMHead filter to exclude pull request that originate from specific branches.
    Since:
    0.2.0
    • Constructor Detail

      • PullRequestTargetBranchNotMatchesFilter

        public PullRequestTargetBranchNotMatchesFilter​(StringFilter filter)
    • Method Detail

      • isAccepted

        protected boolean isAccepted​(com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketPullRequest pullRequest)
        Validates the pull requests is accepted by the filter.
        Overrides:
        isAccepted in class AbstractPullRequestFilter<String>
        Parameters:
        pullRequest - the BitbucketPullRequest
        Returns:
        true if and only if the pull requests was verified positive by the filter
      • getMessage

        protected String getMessage​(com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketPullRequest pullRequest)
        Prepare a message for user to logs.
        Overrides:
        getMessage in class PullRequestTargetBranchMatchesFilter
        Parameters:
        pullRequest - the BitbucketPullRequest
        Returns:
        a message for user