Using main and master branch in projects

Hello Team,

I would like to ask you for assistance.

I need to migrate some projects which worked on other SonarQube Developer instance.
In both cases we are using SonarQube 8.9.6 .
In my projects we are using master for default branch, but a new projects are using main, and now SQ is not seeing them as default branch.

I found in some of topics this can be fixed by deleting main branch, and renaming master to main for these projects which are using main.
For importing projects we are uzing Azure DevOps and CICD pipelines.

Do you have some other solutions?

Thank you in advance.
Ned.

1 Like

Hi Ned,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.9.6 → 9.9.1 → 10.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, SonarQube 10.2, which will be released in early September, will allow you to choose a different branch to be the main branch in SonarQube. I suggest you focus on upgrading to at least 9.9.1, so that you’re ready to adopt 10.2 as soon as it comes out. Then you’ll easily be able to manage which branch is main.

 
HTH,
Ann