ADO sonar task version 7, unexpected issues

  • Developer Edition Version 9.9.1 (build 69595)
  • SonarQube is deployed in a azure VM (IIS server)
  • SonarQubePrepare@7 and SonarQubeAnalyze@7 (Azure pipeline task version)
  • API Language Dotnet 8

Previously we were using SonarQubePrepare@5 and SonarQubeAnalyze@5 for sonaranalyzes task and everything was working fine. after upgrading task version to 7, we started facing unexpected issues such as,

  1. It started scanning in every Folders inside the azure repo instead of scanning the specific folder for which the pipeline is triggered.
  2. In addition to this the analysis getting failed due to analysis checking all the folder. (In specific it check every tsconfig.json file which are available in repo)

Hey there.

It sounds like the update in Azure DevOps Tasks bumped up the version of the Scanner for .NET you’re using, which indexes more files.

You can turn this off by configuring sonar.scanner.scanAll=false.