Getting UNABLE_TO_VERIFY_LEAF_SIGNATURE while running SonarQubePrepare task

Hi, In this situation the recommended way is to add your custom certificate by defining the environment variable NODE_EXTRA_CA_CERTS to specify the path to the certificate.

See this post or this one for similar questions.