SonarQube Developer - Azure DevOps Task Prepare Analysis Configuration is failing

I am using:

  • SonarQube Developer Edition
  • Version: v10.5.1
  • Deployed using Helm chart on Kubernetes

Azure DevOps:
Task: Prepare Analysis Configuration
Version: 6.0.0

I am integrating SonarQube extensions for DevOps, but when I run the pipeline, I get the error:

##[error][SQ] API GET ‘/api/server/version’ failed, error is request to https://[mylocalserver]/api/server/version failed, reason: unable to verify the first certificate

I have tried most of the suggestions on this forum but nothing has helped me to fix the issue.

Hi,

Welcome to the community!

It looks like you’re trying to use a self-signed certificate. The docs should help.

 
Ann

Hi! We also have this issue, and the suggestion in the reply hasn’t worked.

I’m running into the same error using a self signed cert for our SonarQube server and running the ‘Prepare’ task in Devops.
But I still receive the same error, even after restarting SonarQube.
We have SonarQube running on Windows.

I have attempted to follow all the steps listed in your linked documents.

  • added via certutil
  • NODE_EXTRA_CA_CERTS environment variable set
  • in the ‘for all recent scanners’ step, I wasn’t able to find the ‘truststore.p12’ store it referenced. I added it to our java ‘cacerts’ store instead.

Does it need to be in the ‘default’ trust store for SonarQube? And if so, how do I find it?

Hi @emalueg,

Welcome to the community!

You’ve resurrected a thread that’s about 4 months old. Per the FAQ, please don’t do that. Please create a new thread with all your details, including your build agent OS and which SonarScanner you’re using.

 
Thx,
Ann