I have configured a SonarQube server on windows server 2022 and integrate it with Azure DevOps.
all the things are working fine but on Analysis stem my build gets failed and give me the error. Error is attached below:
- Starting: SonarQubeAnalyze
==============================================================================
Task : Run Code Analysis
Description : Run scanner and upload the results to the SonarQube server.
Version : 5.4.0
Author : sonarsource
Help : Version: 5.4.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.
==============================================================================
C:\agent_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.4.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end
SonarScanner for MSBuild 5.5.3
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
Calling the TFS Processor executable…
Attempting to locate the CodeCoverage.exe tool…
Attempting to locate the CodeCoverage.exe tool using setup configuration…
Code coverage command line tool: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
Fetching code coverage report information from TFS…
Attempting to locate a test results (.trx) file…
Looking for TRX files in: C:\agent_work\2\TestResults
No test results files found
Did not find any binary coverage files in the expected location.
Falling back on locating coverage files in the agent temp directory.
Searching for coverage files in C:\agent_work_temp
No coverage files found in the agent temp directory.
Coverage report conversion completed successfully.
The TFS Processor has finished
Calling the SonarScanner CLI…
INFO: Scanner configuration file: C:\agent_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.4.0\classic-sonar-scanner-msbuild\sonar-scanner-4.6.2.2472\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\agent_work\2.sonarqube\out\sonar-project.properties
INFO: SonarScanner 4.6.2.2472
INFO: Java 1.8.0_321 Oracle Corporation (64-bit)
INFO: Windows 10 10.0 amd64
INFO: User cache: C:\Users\tfs.build.sonar\cache
INFO: Scanner configuration file: C:\agent_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.4.0\classic-sonar-scanner-msbuild\sonar-scanner-4.6.2.2472\bin…\conf\sonar-scanner.properties
INFO: Project root configuration file: C:\agent_work\2.sonarqube\out\sonar-project.properties
INFO: Analyzing on SonarQube server 9.4.0
INFO: Default locale: “en_US”, source code encoding: “windows-1252” (analysis is platform dependent)
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------