Introduction
When running automated tests in Jenkins, it is important to stop the build if any test fails. This helps catch problems early and prevents broken code from moving forward.
When you want to ensure only code that passes all tests is deployed.
When you want to save time by stopping builds early if tests fail.
When you want to get quick feedback on code quality after each commit.
When you want to prevent broken code from affecting other developers.
When you want to maintain a stable main branch by blocking failing changes.