Class GitHubBranchRestrictionFilter
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<GitHubBranchEvent>
-
- com.github.kostyasha.github.integration.branch.events.GitHubBranchEvent
-
- com.github.kostyasha.github.integration.branch.events.impl.GitHubBranchRestrictionFilter
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GitHubBranchEvent>
public class GitHubBranchRestrictionFilter extends GitHubBranchEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitHubBranchRestrictionFilter.Descriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GitHubBranchRestrictionFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitHubBranchCause
check(GitHubBranchDecisionContext context)
indicates that branch was createdSet<String>
getMatchCriteria()
String
getMatchCriteriaStr()
boolean
isExclude()
boolean
isMatchAsPattern()
void
setExclude(boolean exclude)
void
setMatchAsPattern(boolean matchAsPattern)
void
setMatchCriteriaStr(String matchCriteria)
-
Methods inherited from class com.github.kostyasha.github.integration.branch.events.GitHubBranchEvent
checkHook, getDescriptor
-
-
-
-
Method Detail
-
getMatchCriteriaStr
public String getMatchCriteriaStr()
-
setMatchCriteriaStr
@DataBoundSetter public void setMatchCriteriaStr(String matchCriteria)
-
isExclude
public boolean isExclude()
-
setExclude
@DataBoundSetter public void setExclude(boolean exclude)
-
isMatchAsPattern
public boolean isMatchAsPattern()
-
setMatchAsPattern
@DataBoundSetter public void setMatchAsPattern(boolean matchAsPattern)
-
check
public GitHubBranchCause check(@NonNull GitHubBranchDecisionContext context) throws IOException
Description copied from class:GitHubBranchEvent
indicates that branch was created- Overrides:
check
in classGitHubBranchEvent
- Returns:
- cause object. null when no influence (other events will be checked. If cause.isSkip() == true, then other checks wouldn't influence. And triggering for this branch will be skipped. If cause.isSkip() == false, indicates that branch build should be run.
- Throws:
IOException
-
-