Dear community,
I’m running SonarQube OnPremise on a self hosted agent, using a public ssl certicate. I triggered scanning from my azure devops pipelines, and since last week, everything works fine. After using a new ssl certificate, i received an error that the certificate isn’t valid - but thats another issue i could solve by replacing the certificate again using a new one.
But now i have a failing “Prepare” task and have no idea whats wrong.
I use yaml pipelines and thats how my task looks like:
# code block
····steps:
···· - task: SonarQubePrepare@7
···· displayName: 'Prepare analysis on SonarQube'
···· inputs:
···· SonarQube: SonarQubeServiceConnectionUrl
···· ScannerMode: 'dotnet'
···· projectKey: [PROJECT KEY]
···· extraProperties: |
···· sonar.host.url=http://localhost:9000
···· sonar.cs.vscoveragexml.reportsPaths=$(Agent.TempDirectory)\**\*.coveragexml
But now i always receive an error:
2025-07-21T05:20:22.9929976Z ##[section]Starting: Prepare analysis on SonarQube
2025-07-21T05:20:22.9939689Z ==============================================================================
2025-07-21T05:20:22.9939871Z Task : Prepare Analysis Configuration
2025-07-21T05:20:22.9939972Z Description : Prepare SonarQube Server analysis configuration
2025-07-21T05:20:22.9940128Z Version : 7.3.0
2025-07-21T05:20:22.9940211Z Author : sonarsource
2025-07-21T05:20:22.9940317Z Help : More Information
2025-07-21T05:20:22.9940503Z ==============================================================================
2025-07-21T05:20:26.4485776Z [INFO] SonarQube Server: Server version: 2025.1.3.110580
2025-07-21T05:20:26.9187265Z [INFO] SonarQube Server: Default branch of this repository is ‘refs/heads/master’
2025-07-21T05:20:26.9356982Z [command]G:\Services\BuildAgent1_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe begin /k:Common_Common.Emails_ad7b9285-8aad-46d7-8f13-6627dad07937
2025-07-21T05:20:27.4893460Z SonarScanner for MSBuild 10.1.2
2025-07-21T05:20:27.4895077Z Using the .NET Framework version of the Scanner for MSBuild
2025-07-21T05:20:27.6626733Z Pre-processing started.
2025-07-21T05:20:27.9790214Z Preparing working directories…
2025-07-21T05:20:28.9403197Z 07:20:28.936 Updating build integration targets…
2025-07-21T05:20:29.5897675Z 07:20:29.577 WARNING: Authentication with the server has failed.
2025-07-21T05:20:29.5899784Z 07:20:29.577 WARNING: In version 7 of the scanner, the default value for the sonar.host.url changed from “http://localhost:9000” to “https://sonarcloud.io”.
2025-07-21T05:20:29.5900350Z If the intention was to connect to the local SonarQube instance, please add the parameter: /d:sonar.host.url=“http://localhost:9000”
2025-07-21T05:20:29.5939313Z ##[error]07:20:29.577 Pre-processing failed. Exit code: 1
2025-07-21T05:20:29.5941102Z 07:20:29.577 Pre-processing failed. Exit code: 1
2025-07-21T05:20:29.6124050Z ##[error][ERROR] SonarQube Server: Error while executing task Prepare: The process ‘G:\Services\BuildAgent1_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1
2025-07-21T05:20:29.6126410Z ##[error]The process ‘G:\Services\BuildAgent1_work_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\7.3.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1
2025-07-21T05:20:29.6330483Z ##[section]Finishing: Prepare analysis on SonarQube
So what could cause the issue? It seems like the url param is ignored, and the scanner can’t connect because of the missing url param?