SELF_SIGNED_CERT_IN_CHAIN Error in Azure DevOps Pipeline during prepare analysis stage

Hi,

We have SonarQube Server installed Internally and using Azure Pipelines to run sonar analysis, but getting SELF_SIGNED_CERT_IN_CHAIN error during prepare analysis stage. I have imported the cert into Keystore cacerts but still receiving same error. I have set NODE_EXTRA_CA_CERTS env variable on the pipeline but no luck.

I have manually installed the sonar-scanner cli and installed cert inside cli bin library and its working, but through pipeline when using Prepare sonar analysis task its failing.

Hi,

Can you share the full analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann