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

Two plugins require different versions of a shared dependency, and `jenkins-plugin-cli` fails the image build. What do you do?

IntermediateScenarioPlatform: plugins, JCasC & Kubernetes agents
Answer

Situation read → Dependency conflict, typically one plugin is too old for the other's requirement.

What I'd do →

  1. Read the error; it names the plugin and required version.
  2. Update the older plugin to a version compatible with the newer dependency (check its changelog and required core).
  3. If one plugin is abandoned and blocks the upgrade, replace or remove it.
  4. Let jenkins-plugin-cli resolve transitive dependencies; pin only top-level plugins plus any you explicitly need.

Why → Over-pinning transitive dependencies causes many of these conflicts.

Interview tip → Show you know the difference between top-level and transitive pins.

All Jenkins questions Roadmap: Jenkins

More on Platform: plugins, JCasC & Kubernetes agents