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
Post a Comment