Fifty teams have copy-pasted pipelines that have drifted apart. How do you standardise them?

IntermediateScenarioPipelines at scale
Answer

Situation read → Copy-paste means every security fix has to be applied 50 times. Centralise the logic, keep a thin per-repo file.

What I'd do →

  1. Build a small set of reusable workflows (GitHub Actions) or templates (GitLab include, Jenkins shared library) for the common paths: build-and-test, container build, deploy.
jobs:
  ci:
    uses: acme/platform-workflows/.github/workflows/container-ci.yml@v3
    with:
      service-name: checkout
    secrets: inherit
  1. Version them with tags (@v3) so teams upgrade on purpose, and publish a changelog.
  2. Migrate in waves, starting with teams that want help, and make the template easier than the custom version.
  3. Allow escape hatches (extra steps before or after) so teams don't fork.
  4. Use a required workflow or ruleset for non-negotiable checks (secret scanning, SAST).

Why → Central templates make the secure, fast pipeline the easiest choice.

Interview tip → Mention versioning templates; an unversioned template change breaks 50 teams at once.

All Real-World Interview questions Roadmap: Interview readiness

More on Pipelines at scale