I’m trying to maintain a lot of projects, branched with git-flow (so long-lived master and develop), and cannot figure out how to force “develop” to be the main branch and not “master”. I know after project creation it can be renamed, but that’s not very scaleable or elegant.
We scan each project in Jenkins, using SonarScanner and a sonar-project.properties file that lives at the source root. How can I specify that the main branch should default to “develop” and not “master” for new projects?
Using SonarQube Version 8.0 (build 29455)
Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this