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

Fetch and update main branch name during Bitbucket Server 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 V2: 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.


      [https://bitbucket-testing.valiantys.sonarsource.com/rest/api/1.0/projects/

      {project-slug}

      /repos/

      {repository-slug}

      /branches]

      Filter on values[].isDefault

        Attachments

          Activity

            People

            Assignee:
            lukasz.jarocki Łukasz Jarocki
            Reporter:
            belen.pruvost Belén Pruvost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: