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
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
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 aJobDecorator
for the specific job type.void
void
setTriggeredBranchesRegex
(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.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
-
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
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.
-