mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2026-02-05 16:19:10 +00:00
CI/CD will include Jenkins and other CI/CD systems. In addition, added a couple of questions on various topics.
15 lines
491 B
Markdown
15 lines
491 B
Markdown
### Jenkins - Remove Jobs
|
|
|
|
#### Objective
|
|
|
|
Learn how to write a Jenkins script that interacts with builds by removing builds older than X days.
|
|
|
|
#### Instructions
|
|
|
|
1. Pick up (or create) a job which has builds older than X days
|
|
2. Write a script to remove only the builds that are older than X days
|
|
|
|
#### Hints
|
|
|
|
X can be anything. For example, remove builds that are older than 3 days. Just make sure that you don't simply remove all the builds (since that's different from the objective).
|