How to fail pipeline using sonar-scanner-cli

Dear all, for javascript/ts scanning we use container version of scanner-cli in our pipeline. We have two problems:

  1. Test coverage will be recognised as 0 as I understand it is missing results of tests. We have angular project - which artifacts are required?
  2. We want to fail pipeline if analysis fails on QGs. I have not found any parameter for this in cli documentation. In gradle we use sonar.qualitygate.wait parameter. Is there analogue in cli?

Many thanks in advance.

Hi,

Welcome to the community!

We try to keep it to one question per thread. Otherwise, it gets messy, fast.

For coverage, the docs should help.

 
Ann

If it is only answer, then it is really not helpful.

Hi,

Well, what have you tried, and what were the results? Did you check the docs? Did they make sense?

 
Ann