Leave a Clean Workspace
Clean workspace residue after every Pipeline outcome.
A beginner Jenkins challenge worth 3 points. Solve it hands-on in a real Jenkins environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: Files from earlier builds are contaminating later runs.
Requirements:
- Add an
alwayscondition to the top-levelpostblock - Call
cleanWs()there - Preserve the success callback
- Verify the build succeeds and cleanup runs