title: Mark Jenkins builds red/yellow depending on test/integration-test failures
body: <p>I have a Jenkins build configured (project uses Java, Maven, JUnit). Depending in what Maven phase the unit tests fail I want to mark the build as Red, Yellow or Green:</p>
  
  <ul>
  <li><p>compilation errors : Red</p></li>
  <li><p>failure(s) in Maven phase "test" : Red</p></li>
  <li><p>failure(s) in Maven phase "integration-test" : Yellow</p></li>
  <li><p>Successful : Green</p></li>
  </ul>
  
  <p>How would I do that?</p>