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

    • WebhookConfigurationTrait

      @DataBoundConstructor public WebhookConfigurationTrait(@NonNull String committersToIgnore)
      Constructor.
      Parameters:
      committersToIgnore - a string of comma separated Bitbucket usernames to ignore
  • Method Details

    • getCommittersToIgnore

      public String getCommittersToIgnore()
      Returns:
      the committers to ignore
    • getWebhookConfiguration

      @NonNull public final WebhookConfiguration getWebhookConfiguration()
      Gets the WebhookConfiguration to apply.
      Returns:
      the WebhookConfiguration to apply.
    • decorateContext

      protected void decorateContext(jenkins.scm.api.trait.SCMSourceContext<?,?> context)
      Overrides:
      decorateContext in class jenkins.scm.api.trait.SCMSourceTrait