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

Stable API for reading REST URL from BitbucketSCMSource

XMLWordPrintable

      I'd like the Bitbucket Server Integration plugin to provide a stable Java API from which other plugins can read parameters for Bitbucket Server REST APIs. The other plugin has an SCMSource and wants to know:

      • Whether this SCMSource came from the Bitbucket Server Integration plugin.
      • The root URI for Bitbucket Server REST APIs.
      • The credential ID for Bitbucket Server REST APIs, or the credential itself. Not the admin token from the global configuration.
      • Project key
      • Repository slug

      All of this information is already available from classes and methods that the Bitbucket Server Integration plugin declares as public. However, all the classes are within the package com.atlassian.bitbucket.jenkins.internal (javadoc), which suggests that Atlassian might not want to support them as a stable API. The Bitbucket Server Integration plugin does not have any @Restricted annotations at all.

      Context: https://github.com/jenkinsci/checks-api-plugin/issues/65#issuecomment-765024815 and https://jira.atlassian.com/browse/BSERV-11477?focusedCommentId=2647677&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-2647677

            Unassigned Unassigned
            kon Kalle Niemitalo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: