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

Add method to set web hook credentials to BitbucketEndpoints

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Bitbucket-branch-source-936.4.2, Jenkins LTS 2.504.3
    • 936.4.3

      For a number of Jenkins instances, we are relying on init.groovy.d scripting to consistently configure BitbucketServerEndpoints. Releas 936.4.0 had a minor impact on our scripting, but also suggests that we should be using BitbucketEndpointProvider.registerEndpoint() instead of methods of BitbucketEndpointConfiguration.

      However, the BitbucketEndpointProvider.registerEndpoint() method does not allow us to enable webhook auto-registration. Therefore, we are still creating a BitbucketServerEndpoint and adding it via BitbucketEndpointConfiguration.

      Are there any plans to also add webhook credententials to BitbucketEndpointProvider.registerEndpoint() or to the class api.BitbucketServer?

      Or are we simply using the wrong interface?

      As an alternative to the init.groovy.d script we have tried Configuration-as-Code, but using it for the Bitbucket Endpoint configuration does not allow us to add additional endpoints via the Jenkins UI.

            nfalco Nikolas Falco
            hvdbrand Hugo van den Brand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: