We are trying to use CircleCI to run the analysis in Sonarcloud instead of the automatic analysis, however, our desire, is that if the analysis is not a success because it doesn’t meet the quality gates specified, the pipeline run fails.
We are not able to do that right now, even if the analysis fails (and we can see it marked as a fail) it returns a success to CIrcleCI.
How can we do that? When we used automatic analysis if it failed, the PR failed.
- ALM used: GitHub
- CI system used: Circle CI
- Scanner command used when applicable (private details masked): Followed CircleCI tutorial
- Error observed: Analysis fails as it doesn’t reach the 75% coverage expected, however, it returns error code 0 to CircleCI