Interview Prep/CI/CD/Jenkins Pipelines and Agents

After a Jenkins upgrade, half the pipelines fail with plugin errors. How do you make upgrades safe?

AdvancedScenarioJenkins Pipelines and Agents
Answer

Situation read → Uncontrolled plugin and core drift.

What I'd do →

  1. Pin plugins in plugins.txt and install with jenkins-plugin-cli --plugin-file plugins.txt; bake into an image.
  2. Run the same image with the same JCasC in a staging controller and execute representative pipelines first.
  3. Upgrade in small steps, read the plugin changelogs and the Jenkins upgrade guide, and keep the previous image for rollback.
  4. Back up JENKINS_HOME (jobs, credentials, secrets) before touching production.

Why → Plugin compatibility is the main Jenkins failure mode, and an image makes the upgrade a rollbackable deploy.

Interview tip → "Jenkins as an immutable image plus config as code" shows maturity.

All CI/CD questions

More on Jenkins Pipelines and Agents