Powershell script to pull the sonarqube metrics and show the results in Pull Request

Hello All,

We have a task where we need to pull the metrics/report of the vulnerabilities like Blockage, major , minor details using sonarqube Web API through Powershell script and once the report is pulled then it has to show the details when a Pull request is failed in Azure DevOps.

Kindly help needed!

Thanks,
Gopi

Hi Gopi

Have you tried this via the UI? 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