Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-12515

Allow multiple Azure Devops instances for pull request decoration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.1
    • Component/s: Branch & PR, Settings
    • Labels:
      None
    • Edition:
      Enterprise
    • Production Notes:
      None

      Description

      Description

      In Enterprise Edition, It should be possible to configure multiple Azure Devops servers for pull request decoration.

      At global level, here are the settings for each GitHub instance :

      • Identifier of the instance
      • Personal access token

      At project level, no additional setting is needed.

      Web services

      Global-level web services

      • api/alm_settings/list_instances : Return list of ALM instances
        • Require 'Administer System' permission
        • No parameter
        • Response example :
          {
            "azure": [
              {
                "key": "Azure Devops Server - Dev Team",
                "personalAccessToken": "12345"
              }
            ]
          }
          
      • api/alm_settings/create_azure
        • Require 'Administer System' permission
        • Mandatory parameters :
          • key, personalAccessToken
      • api/alm_settings/update_azure
        • Require 'Administer System' permission
        • Mandatory parameters :
          • key, personalAccessToken
      • api/alm_settings/delete
        • Require 'Administer System' permission
        • Mandatory parameter : key
      • api/alm_settings/count_binding : Count number of projects bound to an instance, it will mainly be used when deleting an alm instance, in order to warn user about the impact
        • Require 'Administer System' permission
        • Mandatory parameter : instance

      Project-level web services

      • api/alm_settings/list : list of alm settings with only identifiers
        • Require 'Administer' permission on project
        • Mandatory parameters : project
        • Response example :
          {
            "almSettings" : [
            {
              "alm": "azure",
              "key": "Azure Devops Server - Dev Team"
            }
          ]
          
      • api/alm_settings/get_binding
        • Require 'Administer System' permission
        • Mandatory parameters : instance, project
        • Response example :
            {
              "alm": "azure",
              "key": "Azure Devops Server - Dev Team"
            }
          
      • api/alm_settings/set_azure_binding
        • Require 'Administer' permission on the project
        • Mandatory parameter : instance, project
      • api/alm_settings/delete_binding
        • Require 'Administer' permission on the project
        • Mandatory parameters : instance, project

      Database

      The following setting must be dropped :

      • sonar.pullrequest.vsts.token.secured

      Existing values should be migrated to new db structure.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wouter.admiraal Wouter Admiraal
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: