I have created a Jenkins build pipeline and configured SOnar as I described in one of my earlier [questions](https://stackoverflow.com/questions/41513527/how-to-configure-a-jenkins-pipeline-for-sonarqube-scan/41513615#41513615).

The Console Output for the build provides in it a URL that I am using for checking the results of Sonar Analysis. However, my requirement is that based on the number of defects that Sonar finds, it should fail the Jenkins build if a specific 'x' no. of defects are found. Pls suggest how this can be configured in the pipeline