Sonar.branch.name

Version 8.4.1.35646

I am performing an analysis from Microsoft DevOps by means of a pipeline, in the step where I execute the sonar-scanner, it sends me this error message, nowhere do we require that it analyze our branches, in what way can we skip this step?

ERROR: Error during SonarScanner execution
ERROR: Validation of project reactor failed:
o To use the property “sonar.branch.name” and analyze branches, Developer Edition or above is required. See https://redirect.sonarsource.com/doc/branches.html for more information.

Hey there.

This can happen when the branch being analyzed is not set as the default branch of the repository in Azure Devops. Can you check this?

Thanks @Colin,
this solution works for me. In Azure Devops, sonar.branch.name being set if we are scanning non default branches. After I limited the sonar analysis to the default branch (since my Sonarqube is on community edition) It’s working fine.

1 Like