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

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -