Wrong branch name set as main during project creation

Steps to reproduce:

  • checkout a git repository
  • switch to develop branch
  • run sonar scanner without setting -Dsonar.branch.name property

According to documentation, since the scanner is run on the develop branch when the project is created, then the main branch should be set to develop.

Expected result:

  • project is created, one branch is visible called develop and it is set as the main branch

Actual result:

  • project is created with master as the main branch, that branch is empty, and a second branch called develop is visible.

This is different from https://jira.sonarsource.com/browse/MMF-1335.

SonarQube 8.5.


This is a behavior we are planning to improve soon. See MMF-2173 for reference.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.