How to fail a sonar for a maven target: a sonar based on gate quality rules? I run it for local assemblies, for CI I already wrote a script according to http://docs.sonarqube.org/display/SONAR/Breaking+the+CI+Build So, if the quality validation check failed, the target should also tolerate failure
I added the script command as a post step command, so after the assembly has completed the script quality check and breaks the job if they are not ok.
You can use the SonarQube Build Breaker plugin .
This is a controversial feature described in the blog post Why You Shouldn't Use Build Breaker .
It is also possible to integrate using the Jenkins network hook (see the blog post Break SonarQube Analysis Using Jenkins Piping ).
Source: https://habr.com/ru/post/1246249/More articles:How to use intervals in protractor / selenium - javascriptRecommended Wrap Initialization / Destruction Procedure C lib - rustPurpose std :: function to std :: function - c ++Protecting your web server from MITM attacks in Safari - securityChanging the shape of a pandas data frame to as many columns as repeating rows - pythonDisplay leading zeros in number input fields - javascriptTFS web portal: is it possible to associate / URI directly with the line number in the file? - tfsJDBI How can I dynamically create a WHERE clause without SQL Injection? - javaWhen using python os.rmdir get PermissionError: [WinError 5] Access denied - pythonCodeigniter HMVC from CLI: not part of controller - phpAll Articles