Sending SonarCloud reports to EventHub

Hi all,

We are successfully using SonarCloudAnalyzer in our AzureDevOps pipeline and viewing the resulting reports in SonarCloud. However, we’ve been tasked with sending these reports from SonarCloud to Azure EventHub as well.

Do we need to add some more steps to AzureDevOps pipeline, or something else?

Any suggestions will be appreciated :slight_smile:

Best Regards,
Lubomir

Hi Ludomir,

Welcome to the community!

You’ve mentioned SonarQube for Cloud but filed this under SonarQube on-prem. Which are you using? Because the answer differs.

 
Thx,
Ann

Hi Ann,

Thanks for the reply.
Sorry for wrong filling, we are using SonarQube for Cloud.

Best Regards,
Lubomir

Hi Ludomir,

Probably your best option starts with a webhook. Webhooks fire when server-side analysis processing is complete and send the Quality Gate results as the payload. From there, an automation you build on your side would kick in to either retrieve the project PDF report or to build a report from the web API.

The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.

 
HTH,
Ann

Hi Ann,

Thanks for your help.

Best Regards,
Lubomir