Interview Prep/Jenkins/Platform: plugins, JCasC & Kubernetes agents

An auditor asks you to prove the Jenkins configuration in production equals what is in Git. How?

IntermediateScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer

Situation read → Drift detection.

What I'd do →

  1. A scheduled job exports /configuration-as-code/viewExport (admin token) and diffs it against the rendered YAML in Git, ignoring generated fields.
  2. Compare installed plugins (pluginManager/api/json) with plugins.txt.
  3. Use Job Configuration History to show any UI changes with authors.
  4. Alert on drift and enforce read-only by restricting admin rights.

Why → Continuous drift detection is the evidence auditors want.

Interview tip → Mention the image digest in the running pod as evidence for core and plugin versions.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents