How to stop the script if quality gate in SonarQube fails #3014
-
In CI pipeline, i am running a cake script from Jenkinsfile to build, analyze, compile and test the application. Can anyone please help me in figuring out how can i make sure that if Quality gate in SonarQube fails, my build also fails. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Cake itself doesn't doesn't ship with support for SonarQube. There's a Cake.SonarResults 3rd party addin which seems to provide an alias to break a build based on SonarQube quality gate. If you don't want to use a 3rd party addin you can make the call to the SonarQube API directly. See SonarQube documentation for details how to do this. |
Beta Was this translation helpful? Give feedback.
Cake itself doesn't doesn't ship with support for SonarQube. There's a Cake.SonarResults 3rd party addin which seems to provide an alias to break a build based on SonarQube quality gate. If you don't want to use a 3rd party addin you can make the call to the SonarQube API directly. See SonarQube documentation for details how to do this.