Overview - Failing builds on test failures
What is it?
Failing builds on test failures means that when automated tests do not pass during a Jenkins build, the entire build process is marked as failed. This helps teams quickly know if new code changes break existing functionality. Jenkins runs tests as part of the build pipeline and stops or flags the build if any test fails.
Why it matters
Without failing builds on test failures, broken code could be merged and deployed, causing bugs in production. This wastes time and damages user trust. Automatically failing builds on test failures acts like a safety net, catching problems early and keeping software reliable.
Where it fits
Learners should know basic Jenkins pipeline setup and how automated tests work before this. After this, they can learn about advanced Jenkins pipeline error handling and notifications for failed builds.