Setting default main branch name in

  • SonarQube Community 9.9 LTS
  • Docker

We are trying to set the default main branch name to “master” globally using the Admin → General settings

Is there a way to set the branch name in the file?

We already tried to add the line sonar.projectCreation.mainBranchName=master in the properties file, but it does not reflect when the instance is started.

1 Like

Hey there.

No, this setting can only be set in the web application.