The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects

Hey @vishnu_G, are you getting this issue while building in a CI pipeline somewhere or locally on your machine?

I had this issue with a self-hosted agent pool in Azure DevOps where a single VM would run multiple builds in parallel. There’s an issue where the sonar scanner is installed globally to the machine and that scanner gets removed after code analysis is completed. This obviously creates a race condition when running multiple scans in parallel.

Could be related to Make Azure DevOps build tasks atomic to the agent

1 Like