Shared CI logic for 40 projects needs central control.

IntermediateScenarioGitLab CI
Answer

Situation read → Template reuse.

What I'd do →

  1. Store templates in a central project and include them: include: - project: platform/ci-templates ref: v3.2.0 file: /templates/build.yml.
  2. Use extends: and hidden .base jobs, and inputs with spec:inputs for parameterisation.
  3. Enforce mandatory jobs with compliance pipelines or pipeline execution policies.

Why → Pinning ref gives safe versioned rollout.

Interview tip → Know include:local|project|remote|template|component and CI/CD components.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI