SonarQube Health alert from ADO pipeline

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

SonarQube version - 9.4

I am trying to add a script in the ADO pipeline to check the health status of SonarQube.

I have already tested it from postman using below command -

Get http://sonar url/api/system/health

But now I am trying to add it in pipeline in such a way that on every trigger, it will provide us the health status.

In pipeline, I am using yaml pipeline and ubuntu latest agent.

Please let me know.

Hi,

I guess that would be the way.

Would you mind sharing why you want to do that?

 
Thx,
Ann

Hi,

Please let me know what should be the exact command.

Hi,

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

I have got it worked

1 Like