Package jenkins.branch
Class NoTriggerBranchProperty
java.lang.Object
hudson.model.AbstractDescribableImpl<BranchProperty>
jenkins.branch.BranchProperty
jenkins.branch.NoTriggerBranchProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<BranchProperty>,NoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class NoTriggerBranchProperty
extends BranchProperty
implements NoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty
Suppresses builds due to either
BranchIndexingCause or BranchEventCause.
The purpose of this property is to prevent triggering builds resulting from the detection
of changes in the underlying SCM.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a strategy which determines which builds should be suppressed.Returns a regular expressions which determines which builds should be scheduled.<P extends Job<P,B>, B extends Run<P, B>>
JobDecorator<P,B> jobDecorator(Class<P> clazz) Returns aJobDecoratorfor the specific job type.voidvoidsetTriggeredBranchesRegex(String triggeredBranchesRegex) Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
Constructor Details
-
NoTriggerBranchProperty
@DataBoundConstructor public NoTriggerBranchProperty()
-
-
Method Details
-
getTriggeredBranchesRegex
Description copied from interface:NoTriggerMultiBranchQueueDecisionHandler.NoTriggerPropertyReturns a regular expressions which determines which builds should be scheduled.- Specified by:
getTriggeredBranchesRegexin interfaceNoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty- Returns:
- the branch name regular expression.
-
setTriggeredBranchesRegex
-
getStrategy
Description copied from interface:NoTriggerMultiBranchQueueDecisionHandler.NoTriggerPropertyReturns a strategy which determines which builds should be suppressed.- Specified by:
getStrategyin interfaceNoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty- Returns:
- the suppression strategy.
-
setStrategy
@DataBoundSetter public void setStrategy(NoTriggerMultiBranchQueueDecisionHandler.SuppressionStrategy strategy) -
jobDecorator
Description copied from class:BranchPropertyReturns aJobDecoratorfor the specific job type.- Overrides:
jobDecoratorin classBranchProperty- Type Parameters:
P- the type of job.B- the type of run of the job.- Parameters:
clazz- the job class.- Returns:
- a
JobDecoratorornullif none appropriate to this type of job.
-