title: Fail Pipeline in Jenkins
body: <p>I have used Jenkins to create a CI pipeline for my node js application. My pipeline includes jobs such as build,unit test,integration test,code analysis etc. I was wondering if it is possible to fail a build if for example  by implementing threshold like z number of tests failed or pass rate &lt; z% ? I know by default a build will fail if even one test case fails.</p>