(Optionally) evaluate a quality gate in a preview mode and break non-comliant builds

sonarqube

(Oleksandr Alesinskyy) #1

Disclaimer: I know, this topic was discussed already, but a need for this feature persists.

Allow to specify that preview analysis results shall be checked against a quality gate set for the project and to break a (Maven) build if the gate is not passed.

Ideally, this check should take into account not only types and counts of issues, but as well test coverage and duplicated code blocks ( as for now neither of them is reflected in a preview mode report - to my best knowledge).

This functionality would be useful for Gerrit pre-submit verification, to prevent offending changeset from merging into the main branch.