How to fail GitLab CI Job if sonar scanner find a bug or vulnerability?

SonarQube Community Edition version 7.7
Sonar Maven plugin version 3.6.0.1398

Hello,

I would like that my GitLab CI Job fails (and my pipeline stops) if sonar scanner find a bug or vulnerability.

I tried some solutions without success.

Any ideas ?

If you have an project example i’m interested :slight_smile:

Thank you in advance fo your help.

Hi,

Welcome to the community!

The docs should help.

 
:slightly_smiling_face:
Ann