Version SonarQube Scanner in Jenkins: 5.0.1.3006
- I want the quality gate to be in the Failed status at less than 80% test coverage
- I have already applied additional metrics not only for the New Code, but also for the Old Code
Version SonarQube Scanner in Jenkins: 5.0.1.3006
Hi,
Welcome to the community!
Thanks for all the screenshots. They’re very helpful.
What your first one shows is that only 4 lines are your PR are coverable, and that only 5 lines overall are changed. Conditions on coverage and duplications aren’t enforced on new code (i.e. in PRs) when fewer than 20 lines are changed.
It’s not clear whether you’re using SonarQube (per the category you filed this in) or SonarCloud (per your title). In SonarQube there’s an instance-level setting to turn this off, but nothing like that has been implemented in SonarCloud.
HTH,
Ann
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.