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

Fetch and update main branch name during Azure DevOps project onboarding

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.8
    • Component/s: Branch & PR
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      How 

      Retrieve the main branch information from an API call to the ALM, during the onboarding. Right after the SonarQube project creation, try to retrieve the "main branch" from the ALM, and if found, change the default branch on the Sonarqube project.

      Example: https://ado.sonarqube.com/DefaultCollection/c580c0c6-0bf5-4d75-90f9-c96788fd1715/_apis/git/repositories/04f83547-5785-4029-ab43-cabe32e8f519
      "defaultBranch": "refs/heads/master"

      The format of the URL is

      {instanceUrl}

      /

      {projectName}

      /_apis/git/repositories/

      {repositoryName}

      and it has already been implemented in our AzureDevOpsHttpClient

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              philippe.perrin Philippe Perrin
              Reporter:
              belen.pruvost Belén Pruvost
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: