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 eitherBranchIndexingCause
orBranchEventCause
. The purpose of this property is to prevent triggering builds resulting from the detection of changes in the underlying SCM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NoTriggerBranchProperty.DescriptorImpl
static class
NoTriggerBranchProperty.Dispatcher
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description NoTriggerBranchProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NoTriggerMultiBranchQueueDecisionHandler.SuppressionStrategy
getStrategy()
Returns a strategy which determines which builds should be suppressed.String
getTriggeredBranchesRegex()
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 aJobDecorator
for the specific job type.void
setStrategy(NoTriggerMultiBranchQueueDecisionHandler.SuppressionStrategy strategy)
void
setTriggeredBranchesRegex(String triggeredBranchesRegex)
-
Methods inherited from class jenkins.branch.BranchProperty
asArrayList, decorator, decorator, getDescriptor
-
-
-
-
Method Detail
-
getTriggeredBranchesRegex
@NonNull public String getTriggeredBranchesRegex()
Description copied from interface:NoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty
Returns a regular expressions which determines which builds should be scheduled.- Specified by:
getTriggeredBranchesRegex
in interfaceNoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty
- Returns:
- the branch name regular expression.
-
setTriggeredBranchesRegex
@DataBoundSetter public void setTriggeredBranchesRegex(String triggeredBranchesRegex)
-
getStrategy
@NonNull public NoTriggerMultiBranchQueueDecisionHandler.SuppressionStrategy getStrategy()
Description copied from interface:NoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty
Returns a strategy which determines which builds should be suppressed.- Specified by:
getStrategy
in interfaceNoTriggerMultiBranchQueueDecisionHandler.NoTriggerProperty
- Returns:
- the suppression strategy.
-
setStrategy
@DataBoundSetter public void setStrategy(NoTriggerMultiBranchQueueDecisionHandler.SuppressionStrategy strategy)
-
jobDecorator
public <P extends Job<P,B>,B extends Run<P,B>> JobDecorator<P,B> jobDecorator(Class<P> clazz)
Description copied from class:BranchProperty
Returns aJobDecorator
for the specific job type.- Overrides:
jobDecorator
in classBranchProperty
- Type Parameters:
P
- the type of job.B
- the type of run of the job.- Parameters:
clazz
- the job class.- Returns:
- a
JobDecorator
ornull
if none appropriate to this type of job.
-
-