API Question to pull stats?

We can’t seem to find an api that will give us new code stat numbers vs Overall code numbers, so we can fail pipeline builds based on only new code stat numbers.

We are toying with the idea of just getting the Overall numbers and failing if any of the stats increase, then we know, or at least can safely assume, that a new violation as been created.


This is built in to the default Quality Gate, and you can use Webhooks to notify your build system of the Quality Gate status after each analysis.