Executing Sonar Scanner in Azure DevOps Pipeline

Template for a good bug report, formatted with Markdown:

  • versions used 7.3 Community Edition
  • error observed (wrap logs/code around triple quote ``` for proper formatting) Run Code Analysis
  • steps to reproduce Create and Queue a Build in Azure as specified in predefined steps of Sonar
  • potential workaround Analysis is working but Run Code Analysis is getting error for Sonar.branchname

Getting error as below:

**ERROR: Error during SonarQube Scanner execution**
**ERROR: Validation of project reactor failed:**
**o To use the property "sonar.branch.name", the branch plugin is required but not installed. See the documentation of branch support: https://redirect.sonarsource.com/doc/branches.html.**
**The SonarQube Scanner did not complete successfully**
**14:46:48.586 Post-processing failed. Exit code: 1**
**C:\agent\_work\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.6.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe failed with return code: 1**
1 Like