which versions are you using - SonarQube 9.8, Azure DevOps Build
what are you trying to achieve
I’m getting an error when running build from azure DevOps. Below is from azure DevOps log, run Sonar Analysis task
1. Fetching code coverage report information from TFS...
Attempting to locate a test results (.trx) file...
Looking for TRX files in: D:\a\1\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 D:\a\_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: D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\sonar-scanner-4.7.0.2747\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\a\1\.sonarqube\out\sonar-project.properties
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.17 Eclipse Adoptium (64-bit)
INFO: Windows Server 2022 10.0 amd64
INFO: User cache: C:\Users\VssAdministrator\.sonar\cache
INFO: Scanner configuration file: D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\sonar-scanner-4.7.0.2747\bin\..\conf\sonar-scanner.properties
INFO: Project root configuration file: D:\a\1\.sonarqube\out\sonar-project.properties
INFO: Analyzing on SonarQube server 9.8.0.63668
INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=360ms
INFO: Server id: xxxxxxxxxxxxx
INFO: User cache: C:\Users\VssAdministrator\.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=110ms
INFO: Load/download plugins (done) | time=141ms
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 42.925s
INFO: Final Memory: 6M/27M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
**##[debug]Processed: ##vso[task.logissue type=error;]ERROR: Error during SonarScanner execution**
ERROR: Error during SonarScanner execution
**##[error]ERROR: The 'plugin' parameter is missing**
ERROR:
##[debug]Processed: ##vso[task.logissue type=error;]ERROR: The 'plugin' parameter is missing%0D%0AERROR:
ERROR: The 'plugin' parameter is missing
ERROR:
##[error]The SonarScanner did not complete successfully
##[debug]Processed: ##vso[task.logissue type=error;]The SonarScanner did not complete successfully
The SonarScanner did not complete successfully
##[error]23:33:12.882 Post-processing failed. Exit code: 1
##[debug]Processed: ##vso[task.logissue type=error;]23:33:12.882 Post-processing failed. Exit code: 1
23:33:12.882 Post-processing failed. Exit code: 1
##[debug]Exit code 1 received from tool 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe'
##[debug]STDIO streams have closed for tool 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe'
##[debug]task result: Failed
##[error]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
##[debug]Processed: ##vso[task.issue type=error;]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
##[debug]Processed: ##vso[task.complete result=Failed;]The process 'D:\a\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\5.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
Finishing: Run Code Analysis
Thanks for the report! Were you using a different version of SonarQube before, and if so did you only start to experience this when using SonarQube v9.8? I ask because this version as just released.
It would be great if you could move the log level up to DEBUG (sonar.verbose=true) and report back the logs.
Just started using sonaeqube and went to latest version. I resolved the issue few hours ago and will update status here shortly. The proxy server was not forwarding query string parameter. I changed the settings and it started working. Took a while to find the root cause.