Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) - Enterprise Edition V2025.1.1
- how is SonarQube deployed: zip, Docker, Helm - Zip
- what are you trying to achieve
- what have you tried so far to achieve this - added this for the report (sonar.report.export.path=$(Agent.TempDirectory)\report-task.txt).
Dear Team,
Please advise if you can assist on the below error:
INFO: Load New Code definition
INFO: Load New Code definition (done) | time=19ms
INFO: Analysis report generated in 720ms, dir size=9.0 MB
INFO: Analysis report compressed in 2594ms, zip size=4.1 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:01.799s
INFO: Final Memory: 43M/154M
INFO: ------------------------------------------------------------------------
##[error]ERROR: Error during SonarScanner execution
ERROR: Error during SonarScanner execution
##[error]ERROR: The 'report' parameter is missing
ERROR:
ERROR: The 'report' parameter is missing
ERROR:
##[error]The SonarScanner did not complete successfully
The SonarScanner did not complete successfully
##[error]11:57:25.332 Post-processing failed. Exit code: 1
11:57:25.332 Post-processing failed. Exit code: 1
##[error][ERROR] SonarQube Server: Error while executing task Analyze: The process 'D:\_W\A_01\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
##[error]The process 'D:\_W\A_01\_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1
Finishing: Run Code Analysis
Kind Regards,
Kenaz
Here the details about the task on the yml:
- task: SonarQubePrepare@7
displayName: 'Prepare Code Analysis'
inputs:
SonarQube: 'SonarqubeDev'
scannerMode: 'dotnet'
projectKey: '${{ parameters.sonarQubeProjectKey }}'
projectName: '${{ parameters.sonarQubeProjectName }}'
projectVersion: '$(VersionNumber)'
extraProperties: |
# Additional properties that will be passed to the scanner,
# Put one key=value per line, example:
# sonar.exclusions=**/*.bin
sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)\*\coverage.opencover.xml
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)\*.trx
sonar.coverage.exclusions=**\*Tests\**,**\*Migrations\**,**\*Generator\**,**\SDWorx.BePayroll.Shared\**,**\Startup.cs,**\Program.cs,**\Swagger*.cs,**\DomainException.cs,**\StartupExtensions.cs
sonar.report.export.path=$(Agent.TempDirectory)\report-task.txt