node.js - Fail Pipeline in Jenkins -


i have used jenkins create ci pipeline node js application. pipeline includes jobs such build,unit test,integration test,code analysis etc. wondering if possible fail build if example implementing threshold z number of tests failed or pass rate < z% ? know default build fail if 1 test case fails.

your unit test script need handle math & logic determine percent of tests failing bad enough fail whole job. unit test script can return pass (zero) or fail (anything else) , jenkins mark build accordingly.


Comments

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -