AzureDevops Integration for build analysis : Community version

I have azureDevops for CI/CD and my own build agents installed on my own build server. I have hosted Community edition of SonarQube on the azure and setup three task (as suggested in the document guildlines) to analyze the build. The step of run code analysis gives me following error:
##[error]ERROR: Error during SonarScanner execution

ERROR: Error during SonarScanner execution

##[error]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.

ERROR:

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.

The existing documentation for SonarQube didn’t say that we will need the developer version also to scan the build. I thought it was only needed for branch analysis.

Is it the case or am I doing something wrong here ?

Hi @Mukesh-Joshi and welcome to the community !

As the message suggest, if you want to analyze branches and pull request, you need at least the Developer Edition of SonarQube.

The extension will only allow you to analyze the default branch of the repository, otherwise you will get this message. So i suggest you to add a condition to run or not the analysis depending on the branch being currently built.

HTH,
Mickaël

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