Class WebhookConfigurationTrait
java.lang.Object
hudson.model.AbstractDescribableImpl<T>
jenkins.scm.api.trait.SCMTrait<jenkins.scm.api.trait.SCMSourceTrait>
jenkins.scm.api.trait.SCMSourceTrait
com.cloudbees.jenkins.plugins.bitbucket.WebhookConfigurationTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class WebhookConfigurationTrait
extends jenkins.scm.api.trait.SCMSourceTrait
A
SCMSourceTrait
for BitbucketSCMSource
that sets the committersToIgnore
setting in WebhookConfiguration
.- Since:
- 2.4.5
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our constructor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) final WebhookConfiguration
Gets the WebhookConfiguration to apply.Methods inherited from class jenkins.scm.api.trait.SCMSourceTrait
_for, _for, all, applyToBuilder, applyToContext, applyToObserver, decorateBuilder, decorateObserver, getDescriptor, includeCategory, isCategoryEnabled
Methods inherited from class jenkins.scm.api.trait.SCMTrait
asSetList, asSetList, find
-
Constructor Details
-
WebhookConfigurationTrait
Constructor.- Parameters:
committersToIgnore
- a string of comma separated Bitbucket usernames to ignore
-
-
Method Details
-
getCommittersToIgnore
- Returns:
- the committers to ignore
-
getWebhookConfiguration
Gets the WebhookConfiguration to apply.- Returns:
- the WebhookConfiguration to apply.
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-