title: How Do I Fail A Build In Jenkins If The Number Of Compiler Warnings Increases?
body: <p>In TeamCity I can add a Build Failure condition that fails the build if the number of compiler/inspection warnings increases from the previousl successful build</p>
  
  <p><a href="https://confluence.jetbrains.com/display/TCD9/Build+Failure+Conditions#BuildFailureConditions-Failbuildonmetricchange" rel="noreferrer">https://confluence.jetbrains.com/display/TCD9/Build+Failure+Conditions#BuildFailureConditions-Failbuildonmetricchange</a></p>
  
  <p>How do I do the same thing in Jenkins?</p>