DevOps SonarQube publish step fails: certificate has expired

We were having some issues with certificates lately on our local DevOps 2020 + SonarQube 8.9.2 LTS installation.

First the DevOps server was lacking some updates, which first resulted in NuGet Restore steps failing. I suspect the issue was that the agents (which like to use local certificate stores rather than a more up-to-date Windows Certificate Store) were missing some changed trusted CA (we use Let’s Encrypt for our local DevOps).

This seems to have been resolved with the latest DevOps patch. However, after that, a different issue popped up: SonarQube is unable to publish quality results back to DevOps. That’s the SonarQubePublish@4 task in our DevOps pipeline YML.

The agent logs for this aren’t very informative (despite the verbosity): 2021-10-01T17:11:11.5301329Z ##[debug]Evaluating condition for step: 'SonarQubeP -
The error section appears at the bottom:
1. 2021-10-01T17:11:32.5987911Z ##[debug]Processed: ##vso[task.issue type=warning;]Failed to create a build property. Not blocking unless you are using the Sonar Pre-Deployment gate in Release Pipelines. Exception : Error: certificate has expired

I’ve also tried searching SQs local logs for any warnings related to certificates, but found nothing.

Any idea what is wrong?


Welcome to the community!

This thread should help.


Thanks, it did. :slight_smile:


Please see this update as we are having to revert the previous fix and action may be required by you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.