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
  • Constructor Details

    • WebhookRegistrationTrait

      @DataBoundConstructor public WebhookRegistrationTrait(@NonNull String mode)
      Constructor.
      Parameters:
      mode - the mode of registration to apply.
    • WebhookRegistrationTrait

      public WebhookRegistrationTrait(@NonNull WebhookRegistration mode)
      Constructor.
      Parameters:
      mode - the mode of registration to apply.
  • Method Details

    • getMode

      @NonNull public final WebhookRegistration 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 class jenkins.scm.api.trait.SCMSourceTrait