Must-share information (formatted with Markdown):
- which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
- how is SonarQube deployed: zip, Docker, Helm: ZIP
- what are you trying to achieve: Run Analysis with prepare analysis version 7
- what have you tried so far to achieve this:- Upgraded Prepare analysis and Run Analysis task from version 5 to version 7
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
We are using Sonar Analaysis task in build pipeline to run analysis for DB projects. We are using Option in Prepare Analysis “Use Standalone SonarScanner CLI”. After running the task it was publishing the Analysis to Sonar Qube with version 5. Since we have upgraded our Sonar Qube from Version 9.9.3 to 2025.1 it starts failing and showing no result.
in Prepare Analysis tasks we are getting certificate error
[INFO] SonarQube Server: Server version: 2025.1.0.102418
[INFO] SonarQube Server: Unable to get default branch, defaulting to 'master': Error: unable to get local issuer certificate
Also in Publish Quality gate getting below error:-
Task : **Publish Quality Gate Result**
Description : Publish SonarQube Server's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 7.2.0
Author : sonarsource
Help : [More Information](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops/)
==============================================================================
[INFO] SonarQube Server: Server version: 2025.1.0.102418
[INFO] SonarQube Server: Task a96af427-6212-46b4-b03e-67022cbea5a5 completed
[INFO] SonarQube Server: Error fetching component measures: API GET '/api/measures/component' failed. Error message: Request failed with status code 403.
[INFO] SonarQube Server: Overall Quality Gate status: ok
##[warning][WARN] SonarQube Server: Failed to create a build property. Not blocking unless you are using the Sonar Pre-Deployment gate in Release Pipelines. Exception : Error: unable to get local issuer certificate
Thanks
Sunil Bindra