Control Build History Growth
Configure log rotation so old builds and artifacts do not fill controller storage.
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: An unlimited job history is consuming Jenkins disk space.
Requirements:
- Add a top-level Declarative
optionsblock - Use
buildDiscarderwithlogRotator - Retain 10 builds and artifacts from 3 builds
- Keep the checkout and test flow working