Class GitHubBranchCommitMessageCheck

    • Constructor Detail

      • GitHubBranchCommitMessageCheck

        @DataBoundConstructor
        public GitHubBranchCommitMessageCheck()
    • Method Detail

      • check

        public GitHubBranchCause check​(org.kohsuke.github.GHBranch remoteBranch,
                                       GitHubBranchRepository localRepo,
                                       org.kohsuke.github.GHCompare.Commit[] commits)
        Description copied from class: GitHubBranchCommitCheck
        Check used to determine if some associated commit property, such as the commit message, should prevent a build from being triggered.
        Specified by:
        check in class GitHubBranchCommitCheck
        Parameters:
        remoteBranch - current branch state from GH.
        localRepo - local repository state.
        commits - commits commits that occurred between the last known local hash and the current remote.
        Returns:
        GitHubBranchCause instance indicating if the build should be skipped, null otherwise.
      • getMatchCriteria

        public String getMatchCriteria()
      • isExclude

        public boolean isExclude()
      • setExclude

        @DataBoundSetter
        public void setExclude​(boolean exclude)
      • setMatchCriteria

        @DataBoundSetter
        public void setMatchCriteria​(String matchCriteria)