Quality gate with metric "bug count greater than" leads to failed analysis

Steps to reproduce:

  • Define a quality gate with a metric “Bugs is greater than 0” (or vulnerabilities)
  • Run an analysis that results in one or more bug

Expected: analysis task succeeds and the found issues appear in the report
Actual: The analysis task fail with the attached error details

Workaround: use only “rating” metrics in the quality gate

error_details.txt (6.3 KB)

What version of SonarQube are you using?
This bug might be relevant: https://jira.sonarsource.com/browse/SONAR-14807