This Jenkins plugin provides a way to prevent regressions by marking any build which decreases the quality of the code.
Please refer to the Jenkins plugin tutorial for instructions on how to set up your environment.
Install the plugin manually in Jenkins.