Bound and Retry a Flaky Operation
Combine retry limits with a hard deadline for resilient CI work.
A intermediate Jenkins challenge worth 10 points. Solve it hands-on in a real Jenkins environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Transient test infrastructure failures should retry, but the stage must never hang forever.
Requirements:
- Wrap the test in a two-minute
timeout - Retry the operation at most three times
- Keep the timeout outside the retry block so it bounds all attempts
- Run a successful build