Quality gate fails even when no issues

SonarQube Server version 7.3
Maven Sonar Scanner Version: 2.8.1

I have set a quality gate as show below

I have set the leak period as default which is the previous version. When I run the analysis of the master branch, no new issues are reported which matches the quality gate criteria but still the Quality Gate with no reason shown. Please see attached image

Is it a bug? Any help will be greatly appreciated.

Hi,

In the definition of your quality gate, you have used the operator equals, which means : when new blocker issues are equals to zero, then generate an Error/Warning.

You should use “is greater than” in both of your conditions to solved your issue.
You also don’t need to specify both Error and Warning, I recommend you to only use Error.

As a side note, we’re currently working to prevent such misunderstanding in this MMF : https://jira.sonarsource.com/browse/MMF-473.

Regards,
Julien Lancelot

Thanks for your reply!

I had figured that out by repeated attempts. :slight_smile: