Change Main branch from master to develop on sonarcloud.io

Hello,

I’m afraid this is not possible on SonarCloud or SonarQube to change the flag “MAIN BRANCH” easily until https://jira.sonarsource.com/browse/MMF-1335 is implemented.

I see a workaround made of these steps:

  • delete the “develop” branch you currently have
  • rename “master” to “develop” through the “Manage branches” link available in the bottom of the list
  • analyze “master” and “develop” branches so the data are populated in the correct branches in SonarCloud

Alex

2 Likes