Reputation: 1438
When I run an analysis on a UI project with only JS code in it, and no src/main/java folder, the quality gate for code coverage fails. Before on 5.6.6, it was working fine. After upgrade to 6.7.5, I started seeing this issue.
I use Jenkins Sonar for running analysis using maven.
[ERROR] Coverage: 0.0 < 60
[ERROR] Critical Issues: 277 > 0
[ERROR] Blocker Issues: 38 > 0
[ERROR] [BUILD BREAKER] Project did not meet 3 conditions
Upvotes: 0
Views: 249
Reputation: 1438
Worked around this issue using the
sonar.coverage.exclusions=**/*.js
Now the analysis scope has been reduced to avoid .js files from coverage report.
Upvotes: 1