Class GitHubBranchCommitMessageCheck
java.lang.Object
hudson.model.AbstractDescribableImpl<GitHubBranchCommitCheck>
com.github.kostyasha.github.integration.branch.events.impl.commitchecks.GitHubBranchCommitCheck
com.github.kostyasha.github.integration.branch.events.impl.commitchecks.impl.GitHubBranchCommitMessageCheck
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubBranchCommitCheck>
public class GitHubBranchCommitMessageCheck
extends GitHubBranchCommitCheck
implements ExtensionPoint
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheck
(org.kohsuke.github.GHBranch remoteBranch, GitHubBranchRepository localRepo, org.kohsuke.github.GHCompare.Commit[] commits) Check used to determine if some associated commit property, such as the commit message, should prevent a build from being triggered.doCheck
(org.kohsuke.github.GHBranch remoteBranch, GitHubBranchRepository localRepo, org.kohsuke.github.GHCommit commit) boolean
void
setExclude
(boolean exclude) void
setMatchCriteria
(String matchCriteria) Methods inherited from class com.github.kostyasha.github.integration.branch.events.impl.commitchecks.GitHubBranchCommitCheck
check, getDescriptor
-
Constructor Details
-
GitHubBranchCommitMessageCheck
@DataBoundConstructor public GitHubBranchCommitMessageCheck()
-
-
Method Details
-
doCheck
public GitHubBranchCause doCheck(org.kohsuke.github.GHBranch remoteBranch, GitHubBranchRepository localRepo, org.kohsuke.github.GHCommit commit) throws IOException - Specified by:
doCheck
in classGitHubBranchCommitCheck
- Throws:
IOException
-
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 classGitHubBranchCommitCheck
- 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
-
isExclude
public boolean isExclude() -
setExclude
@DataBoundSetter public void setExclude(boolean exclude) -
setMatchCriteria
-