Class WebhookRegistrationTrait
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.WebhookRegistrationTrait
- All Implemented Interfaces:
ExtensionPoint
,Describable<jenkins.scm.api.trait.SCMSourceTrait>
public class WebhookRegistrationTrait
extends jenkins.scm.api.trait.SCMSourceTrait
A
SCMSourceTrait
for BitbucketSCMSource
that overrides the BitbucketEndpointConfiguration
settings for webhook registration.- Since:
- 2.2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our constructor.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionConstructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decorateContext
(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) final WebhookRegistration
getMode()
Gets the mode of registration 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
-
WebhookRegistrationTrait
Constructor.- Parameters:
mode
- the mode of registration to apply.
-
WebhookRegistrationTrait
Constructor.- Parameters:
mode
- the mode of registration to apply.
-
-
Method Details
-
getMode
Gets the mode of registration to apply.- Returns:
- the mode of registration to apply.
-
decorateContext
protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?, ?> context) - Overrides:
decorateContext
in classjenkins.scm.api.trait.SCMSourceTrait
-