Trying to run SonarQube scan from Azure DevOps pipeline integrated to a SonarQube server (SonarQube running in a different server and different network where firewall been enabled) via Self hosted agent.
Created Agent pool in Azure DevOps where the Agent pool is Self-hosted Azure Virtual machine(windows).
Installed SonarQube extension from Azure DevOps Market Place.
Created Service connection for SonarQube in the Azure DevOps.
Established communication from Azure DevOps to VM, from VM to SonarQube .
Created sample pipeline in Azure DevOps to run SonarQube scan.
Also added required certificates in the Virtual Machine.
Getting this error:
##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“UNABLE_TO_GET_ISSUER_CERT_LOCALLY”}
Need help to resolve this issue as soon as possible.
Unless you have access to Commercial Support (an add-on to certain commercial subscriptions)… this Community is where you can seek help.
I would really suggest going the route of this poster:
And creating a small node script to test that the NODE_EXTRA_CA_CERTS value is behaving as expected. This takes the scanner itself out of the equation for now.