What location is sonarscan report saved during gerrit pullbranch analysis?

Hi,

The analysis report that’s submitted to the server isn’t in a parsable form. If you’re pulling the Quality Gate status back to Jenkins after analysis, you may be able to get your coverage % value from it. IIRC that payload includes the values of all the Quality Gate metrics.

Beyond that, it’s certainly possible to pull the coverage value directly from SonarQube using Web APIs.

The best way to master the API is to perform the desired action via the UI (i.e. look at a page where the coverage % is reported) and eavesdrop to see which calls the UI made to accomplish the action.

You may also find this guide helpful.

 
HTH,
Ann

1 Like