CI/CD

If you are managing a dozen of jobs, you can probably use the Jenkins UI. But how do you manage the creation and deletion of hundreds of jobs every week/month?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Managing the creation and deletion of hundreds of jobs every week/month in Jenkins can be a daunting task if done manually through the UI. Here are some approaches to manage large numbers of jobs efficiently:

  1. Use job templates
  2. Use Job DSL
  3. Use Jenkins REST API
  4. Use a configuration management tool
  5. Use a Jenkins job management tool