Interview Prep/Jenkins/Shared libraries

How do you roll out a breaking change in a shared library used by 300 pipelines?

AdvancedConceptShared libraries
Answer
  1. Ship the new behaviour behind a new step name or an opt-in argument, keeping the old path working.
  2. Release as a new major (v2.0.0, moving v2 tag) while v1 stays frozen except for fixes.
  3. Add a deprecation echo or unstable in v1 for the old usage.
  4. Migrate pipelines in batches through automated PRs (Renovate can bump @Library versions).
  5. Track usage by logging library version per build, then retire v1.
All Jenkins questions Roadmap: Jenkins

More on Shared libraries