CoverageReport/SonarQube.xml not generated in pipeline run

Hi all,

We’re running into an issue where a new Azure build pipeline is unable to generate the SonarQube.xml. We have an otherwise nearly identical pipeline, which is able to update its SonarCloud project fine. For this new pipeline, I first added a new project in SonarCloud using the + sign (Analyze new project) and formatted the key to its desired format. From comparing the 2 SonarCloud projects side by side, there do not seem to be any differences.
All pipelines use the same template to prepare and then analyze, and publish the scans. A service connector is being used to access SonarCloud. The 2 pipelines (one working correctly and one not) are both in the same DevOps project and repository.

The issue seems to be that the SonarQube.xml isn’t being generated as it can’t be found during the analysis phase (see logs below). Any help here would be most appreciated!

  • ALM used: Azure DevOps

  • CI system used: Azure DevOps

  • Scanner command used:
    `- task: SonarCloudPrepare@2

    inputs:
      SonarCloud: 'SonarCloud'
      organization: 'companyaabdo3'
      scannerMode: 'MSBuild'
      projectKey: 'com.company.aa.${{parameters.portfolioId}}.${{parameters.productId}}'
      programmingLanguage: '${{parameters.programmingLanguage}}'
      extraProperties:  |
          sonar.coverageReportPaths=$(Build.SourcesDirectory)/CoverageReport/SonarQube.xml`
    
  • Languages of the repository: .NET 6

  • Error observed

2024-08-30T13:15:30.0600967Z ##[section]Starting: SonarCloudAnalyze
2024-08-30T13:15:30.0605111Z ==============================================================================
2024-08-30T13:15:30.0605239Z Task         : Run Code Analysis
2024-08-30T13:15:30.0605327Z Description  : Run scanner and upload the results to the SonarCloud server.
2024-08-30T13:15:30.0605434Z Version      : 2.3.2
2024-08-30T13:15:30.0605498Z Author       : sonarsource
2024-08-30T13:15:30.0605596Z Help         : This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarcloud-extension-for-azure-devops/)
2024-08-30T13:15:30.0605876Z ==============================================================================
2024-08-30T13:15:30.2755531Z [command]/opt/hostedtoolcache/dotnet/dotnet /home/vsts/work/_tasks/SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255/2.3.2/dotnet-sonar-scanner-msbuild/SonarScanner.MSBuild.dll end
2024-08-30T13:15:30.3421393Z SonarScanner for MSBuild 6.2
2024-08-30T13:15:30.3421817Z Using the .NET Core version of the Scanner for MSBuild
2024-08-30T13:15:30.4081810Z Post-processing started.
2024-08-30T13:15:30.5779579Z Calling the SonarScanner CLI...
2024-08-30T13:15:30.7854122Z INFO: Scanner configuration file: /home/vsts/work/_tasks/SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255/2.3.2/dotnet-sonar-scanner-msbuild/sonar-scanner-5.0.1.3006/conf/sonar-scanner.properties
2024-08-30T13:15:30.7861544Z INFO: Project root configuration file: /home/vsts/work/1/.sonarqube/out/sonar-project.properties
2024-08-30T13:15:30.8428459Z INFO: SonarScanner 5.0.1.3006
2024-08-30T13:15:30.8431536Z INFO: Java 17.0.12 Eclipse Adoptium (64-bit)
2024-08-30T13:15:30.8437959Z INFO: Linux 6.5.0-1025-azure amd64
2024-08-30T13:15:31.1716214Z INFO: User cache: /home/vsts/.sonar/cache
2024-08-30T13:15:33.1509041Z INFO: Analyzing on SonarCloud
2024-08-30T13:15:33.1515602Z INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
2024-08-30T13:15:33.9193455Z INFO: Load global settings
2024-08-30T13:15:34.3190151Z INFO: Load global settings (done) | time=403ms
2024-08-30T13:15:34.3236840Z INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
2024-08-30T13:15:34.4907807Z INFO: Loading required plugins
2024-08-30T13:15:34.4932465Z INFO: Load plugins index
2024-08-30T13:15:34.6140589Z INFO: Load plugins index (done) | time=119ms
2024-08-30T13:15:34.6141328Z INFO: Load/download plugins
2024-08-30T13:15:35.2060739Z INFO: Load/download plugins (done) | time=592ms
2024-08-30T13:15:35.5976760Z INFO: Found an active CI vendor: 'Azure DevOps'
2024-08-30T13:15:35.6110145Z INFO: Load project settings for component key: 'com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI'
2024-08-30T13:15:35.7707560Z INFO: Load project settings for component key: 'com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI' (done) | time=159ms
2024-08-30T13:15:35.7834870Z INFO: Process project properties
2024-08-30T13:15:35.8102908Z INFO: Project key: com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI
2024-08-30T13:15:35.8119932Z INFO: Base dir: /home/vsts/work/1/s
2024-08-30T13:15:35.8120618Z INFO: Working dir: /home/vsts/work/1/.sonarqube/out/.sonar
2024-08-30T13:15:35.8346648Z INFO: Load project branches
2024-08-30T13:15:35.9693265Z INFO: Load project branches (done) | time=135ms
2024-08-30T13:15:35.9724527Z INFO: Check ALM binding of project 'com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI'
2024-08-30T13:15:36.1039738Z INFO: Detected project binding: NOT_BOUND
2024-08-30T13:15:36.1047065Z INFO: Check ALM binding of project 'com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI' (done) | time=132ms
2024-08-30T13:15:36.1055657Z INFO: Load project pull requests
2024-08-30T13:15:36.2410045Z INFO: Load project pull requests (done) | time=136ms
2024-08-30T13:15:36.2438126Z INFO: Load branch configuration
2024-08-30T13:15:36.2476024Z INFO: Load branch configuration (done) | time=3ms
2024-08-30T13:15:36.2535578Z INFO: Load quality profiles
2024-08-30T13:15:36.9548203Z INFO: Load quality profiles (done) | time=701ms
2024-08-30T13:15:36.9593130Z INFO: Load active rules
2024-08-30T13:15:43.2518649Z INFO: Load active rules (done) | time=6289ms
2024-08-30T13:15:43.4024016Z INFO: Organization key: companyaabdo3
2024-08-30T13:15:43.4198503Z INFO: Preprocessing files...
2024-08-30T13:15:43.9295250Z INFO: 4 languages detected in 111 preprocessed files
2024-08-30T13:15:43.9307180Z INFO: 241 files ignored because of inclusion/exclusion patterns
2024-08-30T13:15:43.9315784Z INFO: 5 files ignored because of scm ignore settings
2024-08-30T13:15:44.0218014Z INFO: Loading plugins for detected languages
2024-08-30T13:15:44.0218621Z INFO: Load/download plugins
2024-08-30T13:15:44.4100588Z INFO: Load/download plugins (done) | time=384ms
2024-08-30T13:15:44.5140587Z INFO: Executing phase 2 project builders
2024-08-30T13:15:44.5782168Z INFO: Executing phase 2 project builders (done) | time=64ms
2024-08-30T13:15:44.5873805Z INFO: Load project repositories
2024-08-30T13:15:44.7254101Z INFO: Load project repositories (done) | time=137ms
2024-08-30T13:15:44.7307891Z INFO: Indexing files...
2024-08-30T13:15:44.7308349Z INFO: Project configuration:
2024-08-30T13:15:44.7308577Z INFO:   Included sources: **/SRS.SubscriptionAPI/**
2024-08-30T13:15:44.7309088Z INFO:   Excluded sources: **/build-wrapper-dump.json
2024-08-30T13:15:44.7309306Z INFO:   Excluded sources for coverage: **/SRS.CommonAPI/**
2024-08-30T13:15:44.7312958Z INFO: Indexing files of module 'SRS.SubscriptionAPI'
2024-08-30T13:15:44.7313513Z INFO:   Base dir: /home/vsts/work/1/s/SRS.SubscriptionAPI
2024-08-30T13:15:44.7332448Z INFO:   Source paths: Contracts/AssigneeManagement/CreateSubscriptionAssignmentRequ...
2024-08-30T13:15:44.7336617Z INFO:   Included sources: **/SRS.SubscriptionAPI/**
2024-08-30T13:15:44.7338125Z INFO:   Excluded sources: **/build-wrapper-dump.json
2024-08-30T13:15:44.7341857Z INFO:   Excluded sources for coverage: **/SRS.CommonAPI/**
2024-08-30T13:15:44.8043430Z INFO: Indexing files of module 'SRS.SubscriptionAPI'
2024-08-30T13:15:44.8053387Z INFO:   Base dir: /home/vsts/work/1/s/SRS.SubscriptionAPI
2024-08-30T13:15:44.8062080Z INFO:   Included sources: **/SRS.SubscriptionAPI/**
2024-08-30T13:15:44.8069995Z INFO:   Excluded sources: **/build-wrapper-dump.json
2024-08-30T13:15:44.8078193Z INFO:   Excluded sources for coverage: **/SRS.CommonAPI/**
2024-08-30T13:15:44.8095765Z INFO: Indexing files of module 'SRS.CommonAPI'
2024-08-30T13:15:44.8105420Z INFO:   Base dir: /home/vsts/work/1/s/SRS.CommonAPI
2024-08-30T13:15:44.8111985Z INFO:   Included sources: **/SRS.SubscriptionAPI/**
2024-08-30T13:15:44.8117341Z INFO:   Excluded sources: **/build-wrapper-dump.json
2024-08-30T13:15:44.8122480Z INFO:   Excluded sources for coverage: **/SRS.CommonAPI/**
2024-08-30T13:15:44.8133955Z INFO: Indexing files of module 'SRS.CommonAPI'
2024-08-30T13:15:44.8139437Z INFO:   Base dir: /home/vsts/work/1/s/SRS.CommonAPI
2024-08-30T13:15:44.8167184Z INFO:   Source paths: Caching/CacheManager.cs, Caching/ICacheManager.cs, Clients/Co...
2024-08-30T13:15:44.8171615Z INFO:   Included sources: **/SRS.SubscriptionAPI/**
2024-08-30T13:15:44.8178552Z INFO:   Excluded sources: **/build-wrapper-dump.json
2024-08-30T13:15:44.8193776Z INFO:   Excluded sources for coverage: **/SRS.CommonAPI/**
2024-08-30T13:15:44.8206531Z INFO: Indexing files of module 'com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI'
2024-08-30T13:15:44.8210791Z INFO:   Base dir: /home/vsts/work/1/s
2024-08-30T13:15:44.8215980Z INFO:   Source paths: Configuration/CommonSettings.json, Configuration/CommonSettin...
2024-08-30T13:15:44.8221061Z INFO:   Included sources: **/SRS.SubscriptionAPI/**
2024-08-30T13:15:44.8226021Z INFO:   Excluded sources: **/build-wrapper-dump.json
2024-08-30T13:15:44.8231207Z INFO:   Excluded sources for coverage: **/SRS.CommonAPI/**
2024-08-30T13:15:44.8259731Z INFO: 111 files indexed
2024-08-30T13:15:44.8325795Z INFO: Quality profile for cs: Sonar way
2024-08-30T13:15:44.8328104Z INFO: Quality profile for docker: Sonar way
2024-08-30T13:15:44.8328600Z INFO: Quality profile for json: Sonar way
2024-08-30T13:15:44.8333683Z INFO: Quality profile for xml: Sonar way
2024-08-30T13:15:44.8334080Z INFO: ------------- Run sensors on module SRS.SubscriptionAPI
2024-08-30T13:15:44.8762879Z INFO: Load metrics repository
2024-08-30T13:15:44.9847998Z INFO: Load metrics repository (done) | time=109ms
2024-08-30T13:15:44.9892513Z INFO: Sensor cache enabled
2024-08-30T13:15:45.1147870Z INFO: Load sensor cache
2024-08-30T13:15:46.0415323Z INFO: Load sensor cache (404) | time=923ms
2024-08-30T13:15:46.3923962Z INFO: Sensor C# Project Type Information [csharp]
2024-08-30T13:15:46.3954797Z INFO: Sensor C# Project Type Information [csharp] (done) | time=3ms
2024-08-30T13:15:46.3963079Z INFO: Sensor C# Analysis Log [csharp]
2024-08-30T13:15:46.4082111Z INFO: Roslyn version: 4.3.0.0
2024-08-30T13:15:46.4082528Z INFO: Language version: CSharp10
2024-08-30T13:15:46.4082716Z INFO: Concurrent execution: enabled
2024-08-30T13:15:46.4086584Z INFO: Sensor C# Analysis Log [csharp] (done) | time=12ms
2024-08-30T13:15:46.4092370Z INFO: Sensor C# Properties [csharp]
2024-08-30T13:15:46.4110906Z INFO: Sensor C# Properties [csharp] (done) | time=2ms
2024-08-30T13:15:46.4114968Z INFO: Sensor XML Sensor [xml]
2024-08-30T13:15:46.4298136Z INFO: 1 source file to be analyzed
2024-08-30T13:15:46.5858878Z INFO: 1/1 source file has been analyzed
2024-08-30T13:15:46.5874824Z INFO: Sensor XML Sensor [xml] (done) | time=175ms
2024-08-30T13:15:46.5878266Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-08-30T13:15:46.5894963Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-08-30T13:15:46.5906611Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-08-30T13:15:46.5910034Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
2024-08-30T13:15:46.5916526Z INFO: Sensor IaC CloudFormation Sensor [iac]
2024-08-30T13:15:46.6097679Z INFO: 0 source files to be analyzed
2024-08-30T13:15:46.6143003Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:46.6143741Z INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=19ms
2024-08-30T13:15:46.6144377Z INFO: Sensor IaC AzureResourceManager Sensor [iac]
2024-08-30T13:15:46.7208698Z INFO: 0 source files to be analyzed
2024-08-30T13:15:46.7209485Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:46.7210226Z INFO: Sensor IaC AzureResourceManager Sensor [iac] (done) | time=101ms
2024-08-30T13:15:46.7210623Z INFO: Sensor Java Config Sensor [iac]
2024-08-30T13:15:46.7253099Z INFO: 0 source files to be analyzed
2024-08-30T13:15:46.7253907Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:46.7257527Z INFO: Sensor Java Config Sensor [iac] (done) | time=13ms
2024-08-30T13:15:46.7273112Z INFO: Sensor IaC Docker Sensor [iac]
2024-08-30T13:15:46.7755290Z INFO: 1 source file to be analyzed
2024-08-30T13:15:46.8956449Z INFO: 1/1 source file has been analyzed
2024-08-30T13:15:46.8957261Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=168ms
2024-08-30T13:15:46.8963564Z INFO: Sensor Serverless configuration file sensor [security]
2024-08-30T13:15:46.8980265Z INFO: 0 Serverless function entries were found in the project
2024-08-30T13:15:46.9009307Z INFO: 0 Serverless function handlers were kept as entrypoints
2024-08-30T13:15:46.9012912Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=5ms
2024-08-30T13:15:46.9019028Z INFO: Sensor AWS SAM template file sensor [security]
2024-08-30T13:15:46.9033834Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms
2024-08-30T13:15:46.9043362Z INFO: Sensor AWS SAM Inline template file sensor [security]
2024-08-30T13:15:46.9057137Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=2ms
2024-08-30T13:15:46.9092067Z INFO: ------------- Run sensors on module SRS.SubscriptionAPI
2024-08-30T13:15:46.9396938Z INFO: Sensor C# Project Type Information [csharp]
2024-08-30T13:15:46.9401032Z INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
2024-08-30T13:15:46.9407372Z INFO: Sensor C# Analysis Log [csharp]
2024-08-30T13:15:46.9415924Z INFO: Roslyn version: 4.3.0.0
2024-08-30T13:15:46.9416369Z INFO: Language version: CSharp10
2024-08-30T13:15:46.9419515Z INFO: Concurrent execution: enabled
2024-08-30T13:15:46.9423005Z INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
2024-08-30T13:15:46.9428832Z INFO: Sensor C# Properties [csharp]
2024-08-30T13:15:46.9435722Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2024-08-30T13:15:46.9440809Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-08-30T13:15:46.9445271Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-08-30T13:15:46.9448158Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-08-30T13:15:46.9451701Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
2024-08-30T13:15:46.9457082Z INFO: Sensor Java Config Sensor [iac]
2024-08-30T13:15:46.9466877Z INFO: 0 source files to be analyzed
2024-08-30T13:15:46.9470454Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:46.9534134Z INFO: Sensor Java Config Sensor [iac] (done) | time=2ms
2024-08-30T13:15:46.9534597Z INFO: Sensor IaC Docker Sensor [iac]
2024-08-30T13:15:46.9540762Z INFO: 0 source files to be analyzed
2024-08-30T13:15:46.9544095Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:46.9548029Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=7ms
2024-08-30T13:15:46.9553353Z INFO: Sensor Serverless configuration file sensor [security]
2024-08-30T13:15:46.9557464Z INFO: 0 Serverless function entries were found in the project
2024-08-30T13:15:46.9561213Z INFO: 0 Serverless function handlers were kept as entrypoints
2024-08-30T13:15:46.9564626Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=0ms
2024-08-30T13:15:46.9569766Z INFO: Sensor AWS SAM template file sensor [security]
2024-08-30T13:15:46.9574453Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=1ms
2024-08-30T13:15:46.9579547Z INFO: Sensor AWS SAM Inline template file sensor [security]
2024-08-30T13:15:46.9583700Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
2024-08-30T13:15:46.9590179Z INFO: ------------- Run sensors on module SRS.CommonAPI
2024-08-30T13:15:46.9796996Z INFO: Sensor C# Project Type Information [csharp]
2024-08-30T13:15:46.9826771Z INFO: Sensor C# Project Type Information [csharp] (done) | time=3ms
2024-08-30T13:15:46.9833971Z INFO: Sensor C# Analysis Log [csharp]
2024-08-30T13:15:46.9843510Z INFO: Roslyn version: 4.3.0.0
2024-08-30T13:15:46.9848566Z INFO: Language version: CSharp10
2024-08-30T13:15:46.9849020Z INFO: Concurrent execution: enabled
2024-08-30T13:15:46.9851960Z INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
2024-08-30T13:15:46.9857953Z INFO: Sensor C# Properties [csharp]
2024-08-30T13:15:46.9864989Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2024-08-30T13:15:46.9873368Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-08-30T13:15:46.9880527Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-08-30T13:15:46.9884622Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-08-30T13:15:46.9887960Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
2024-08-30T13:15:46.9893319Z INFO: Sensor Java Config Sensor [iac]
2024-08-30T13:15:46.9907343Z INFO: 0 source files to be analyzed
2024-08-30T13:15:46.9907794Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:46.9910893Z INFO: Sensor Java Config Sensor [iac] (done) | time=1ms
2024-08-30T13:15:46.9915887Z INFO: Sensor IaC Docker Sensor [iac]
2024-08-30T13:15:47.0094098Z INFO: 0 source files to be analyzed
2024-08-30T13:15:47.0094735Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:47.0099424Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=18ms
2024-08-30T13:15:47.0105591Z INFO: Sensor Serverless configuration file sensor [security]
2024-08-30T13:15:47.0110028Z INFO: 0 Serverless function entries were found in the project
2024-08-30T13:15:47.0114154Z INFO: 0 Serverless function handlers were kept as entrypoints
2024-08-30T13:15:47.0117508Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=1ms
2024-08-30T13:15:47.0123004Z INFO: Sensor AWS SAM template file sensor [security]
2024-08-30T13:15:47.0129771Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
2024-08-30T13:15:47.0136154Z INFO: Sensor AWS SAM Inline template file sensor [security]
2024-08-30T13:15:47.0141409Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=0ms
2024-08-30T13:15:47.0147302Z INFO: ------------- Run sensors on module SRS.CommonAPI
2024-08-30T13:15:47.0410475Z INFO: Sensor C# Project Type Information [csharp]
2024-08-30T13:15:47.0430799Z INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms
2024-08-30T13:15:47.0436796Z INFO: Sensor C# Analysis Log [csharp]
2024-08-30T13:15:47.0444619Z INFO: Roslyn version: 4.3.0.0
2024-08-30T13:15:47.0445061Z INFO: Language version: CSharp10
2024-08-30T13:15:47.0447135Z INFO: Concurrent execution: enabled
2024-08-30T13:15:47.0455895Z INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
2024-08-30T13:15:47.0463023Z INFO: Sensor C# Properties [csharp]
2024-08-30T13:15:47.0473289Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2024-08-30T13:15:47.0500376Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-08-30T13:15:47.0503754Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-08-30T13:15:47.0506437Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-08-30T13:15:47.0508941Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
2024-08-30T13:15:47.0514541Z INFO: Sensor Java Config Sensor [iac]
2024-08-30T13:15:47.0534601Z INFO: 0 source files to be analyzed
2024-08-30T13:15:47.0535057Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:47.0538217Z INFO: Sensor Java Config Sensor [iac] (done) | time=2ms
2024-08-30T13:15:47.0543482Z INFO: Sensor IaC Docker Sensor [iac]
2024-08-30T13:15:47.0662985Z INFO: 0 source files to be analyzed
2024-08-30T13:15:47.0664091Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:47.0666186Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=12ms
2024-08-30T13:15:47.0678602Z INFO: Sensor Serverless configuration file sensor [security]
2024-08-30T13:15:47.0683537Z INFO: 0 Serverless function entries were found in the project
2024-08-30T13:15:47.0684353Z INFO: 0 Serverless function handlers were kept as entrypoints
2024-08-30T13:15:47.0685027Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=0ms
2024-08-30T13:15:47.0698543Z INFO: Sensor AWS SAM template file sensor [security]
2024-08-30T13:15:47.0705587Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=1ms
2024-08-30T13:15:47.0717690Z INFO: Sensor AWS SAM Inline template file sensor [security]
2024-08-30T13:15:47.0724561Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms
2024-08-30T13:15:47.0734033Z INFO: ------------- Run sensors on module com.company.aa.srs.SRS4.0MiddleLayer-SubscriptionAPI
2024-08-30T13:15:47.0944669Z INFO: Sensor C# Project Type Information [csharp]
2024-08-30T13:15:47.0953130Z INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
2024-08-30T13:15:47.0961408Z INFO: Sensor C# Analysis Log [csharp]
2024-08-30T13:15:47.0971230Z INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
2024-08-30T13:15:47.0978845Z INFO: Sensor C# Properties [csharp]
2024-08-30T13:15:47.0985662Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2024-08-30T13:15:47.0992729Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2024-08-30T13:15:47.0999363Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2024-08-30T13:15:47.1005576Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2024-08-30T13:15:47.1010895Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
2024-08-30T13:15:47.1018423Z INFO: Sensor Java Config Sensor [iac]
2024-08-30T13:15:47.1031463Z INFO: 0 source files to be analyzed
2024-08-30T13:15:47.1036984Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:47.1095445Z INFO: Sensor Java Config Sensor [iac] (done) | time=2ms
2024-08-30T13:15:47.1096209Z INFO: Sensor IaC Docker Sensor [iac]
2024-08-30T13:15:47.1111946Z INFO: 0 source files to be analyzed
2024-08-30T13:15:47.1112496Z INFO: 0/0 source files have been analyzed
2024-08-30T13:15:47.1115088Z INFO: Sensor IaC Docker Sensor [iac] (done) | time=6ms
2024-08-30T13:15:47.1118317Z INFO: Sensor Serverless configuration file sensor [security]
2024-08-30T13:15:47.1118985Z INFO: 0 Serverless function entries were found in the project
2024-08-30T13:15:47.1131464Z INFO: 0 Serverless function handlers were kept as entrypoints
2024-08-30T13:15:47.1132843Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=1ms
2024-08-30T13:15:47.1137867Z INFO: Sensor AWS SAM template file sensor [security]
2024-08-30T13:15:47.1139746Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
2024-08-30T13:15:47.1147792Z INFO: Sensor AWS SAM Inline template file sensor [security]
2024-08-30T13:15:47.1150572Z INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=0ms
2024-08-30T13:15:47.1153376Z INFO: Sensor Generic Coverage Report
2024-08-30T13:15:47.1158129Z INFO: Parsing /home/vsts/work/1/s/CoverageReport/SonarQube.xml
2024-08-30T13:15:47.1329785Z INFO: ------------------------------------------------------------------------
2024-08-30T13:15:47.1339392Z INFO: EXECUTION FAILURE
2024-08-30T13:15:47.1345411Z INFO: ------------------------------------------------------------------------
2024-08-30T13:15:47.1355978Z INFO: Total time: 16.369s
2024-08-30T13:15:47.1987505Z INFO: Final Memory: 13M/50M
2024-08-30T13:15:47.1988555Z INFO: ------------------------------------------------------------------------
2024-08-30T13:15:47.1998605Z ##[error]ERROR: Error during SonarScanner execution
ERROR: Error during parsing of the generic coverage report '/home/vsts/work/1/s/CoverageReport/SonarQube.xml'. Look at SonarQube documentation to know the expected XML format.
ERROR: Caused by: /home/vsts/work/1/s/CoverageReport/SonarQube.xml (No such file or directory)
2024-08-30T13:15:47.2000874Z ERROR: Error during SonarScanner execution
2024-08-30T13:15:47.2002241Z ERROR: Error during parsing of the generic coverage report '/home/vsts/work/1/s/CoverageReport/SonarQube.xml'. Look at SonarQube documentation to know the expected XML format.
2024-08-30T13:15:47.2003348Z ERROR: Caused by: /home/vsts/work/1/s/CoverageReport/SonarQube.xml (No such file or directory)
2024-08-30T13:15:47.2007075Z ##[error]ERROR:
2024-08-30T13:15:47.2007714Z ERROR: 
2024-08-30T13:15:47.5552313Z ##[error]The SonarScanner did not complete successfully
2024-08-30T13:15:47.5558025Z The SonarScanner did not complete successfully
2024-08-30T13:15:47.5561721Z ##[error]13:15:47.554  Post-processing failed. Exit code: 1
2024-08-30T13:15:47.5562752Z 13:15:47.554  Post-processing failed. Exit code: 1
2024-08-30T13:15:47.5614546Z ##[warning]Can't find loc string for key: LIB_ProcessExitCode
2024-08-30T13:15:47.5615902Z ##[warning]Error while executing SonarCloud:Analyze task: LIB_ProcessExitCode /opt/hostedtoolcache/dotnet/dotnet 1
2024-08-30T13:15:47.5620261Z ##[error]LIB_ProcessExitCode /opt/hostedtoolcache/dotnet/dotnet 1
2024-08-30T13:15:47.5678585Z ##[section]Finishing: SonarCloudAnalyze

Hey there.

What part of your pipeline are you expecting to generate the SonarQube.xml file?

I’d encourage you to check the documentation on .NET Test Coverage, which covers the common ways coverage reports are generated to be consumed by the scanner.

Check if these NuGet references in the test project are already present, maybe your coverage report is not generated.