Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-76174

What is the replacement for deprecated webhookConfigurationTrait (committersToIgnore) in Job DSL?

XMLWordPrintable

      The webhookConfigurationTrait is now marked as deprecated in the Bitbucket Branch Source plugin. My Job DSL code currently uses it to ignore webhook events from specific committers, like this:

       
      bitbucketWebhookConfiguration is deprecated
      // Ignore webhook for committers
      if (params.committersToIgnore) {
          webhookConfigurationTrait

      {         committersToIgnore(<>)     }
      } else {
          webhookConfigurationTrait {         committersToIgnore(<>)     }

      }
      What is the recommended way to achieve the same functionality now that webhookConfigurationTrait is deprecated? Is there a new trait or configuration block that allows ignoring webhook events from specific committers?

      Thanks

            nfalco Nikolas Falco
            yugannkt YUGAN NITHISH KUMAR
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: