Sonarqube doesn't block PR when new code coverage is 0

Hi We are using develop 7.5 version sonarqube to do code analyzing.
We have our code quality setting for new code like this:
Metric OnNewCode Operator Error
Overage on New Code always is less than . 70.0%

However, it only failed in develop branch, but not block feature branch and PR.
Even when the new code coverage is 0, status sonarqube returns to github is still ‘PASS’, PR still can merge.

Not sure it’s related to our version or other configuration we missed ?

Looking for the help!

Thanks!

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hi,

Welcome to the community!

IIRC, real quality gates - including coverage - hadn’t been added by 7.5. It’s definitely included in 7.9.1, which is the current LTS, so you should consider upgrading at your earliest convenience.

 
:slight_smile:
Ann

1 Like

Hi Ann,

Sure, we will consider to update to LTS if it supports real quality gates. But one more question, do you have a dockerized version for 7.9.1?

Thanks for your helping!

Meng

Hi,

We support Docker for Community Edition, but not for the commercial editions. (Yet. Maybe for 8.0.)

 
Ann

Hi Ann,

Thanks for the quick answer.
But 8.0 still not support ‘real quality gate’, right ?
Do you have a plan to support Docker for Commercial edition ?

Thank you!
Meng

Hi Meng,

Real Quality Gates on PRs and Short Lived Branches is supported from 7.7 forward. It’s in 7.9.1 and it will be in 8.0.

Yep…

 
Ann

Oh, Sorry, I misunderstood as 7.8… oh, sure that make sense 8.0 support real quality gate. Looking forward to 8.0 !

Thank you so much for all your supports!
Meng

Hi Ann,

One more question, does sonarqube support docker for 7.7 & 7.8 for commercial edition ?

Thanks,
Meng

Hi Meng,

We don’t offer Docker support for commercial editions in any version right now. It’s possible that will happen for 8.0, but there are no firm plans right now.

 
Ann

Hi Ann,

Good to know. Thank you :slight_smile:

Meng