Use GitLab CI rules to Control When Jobs Run
Replace only/except with rules to explicitly control which GitLab CI jobs run in merge request and push pipelines.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Replace only/except with rules to explicitly control which GitLab CI jobs run in merge request and push pipelines.
Learn how a single version‑controlled template can replace dozens of copied .gitlab-ci.yml files, enforce consistent stages, and still let each project override what it needs.
Diagnose why GitLab CI/CD jobs stay Pending by matching job tags, runner scope, protection, and capacity to runner state.
When GitLab users can’t authenticate via LDAP, the problem is usually a configuration or network issue. This guide walks through a diagnostic table, step‑by‑step checks, fixes, and escalation paths for GitLab 13‑16.
GitLab CI/CD cache storage, trust boundaries, monitoring, and migration conditions for reliable pipeline execution.
Learn how GitLab protected branches enforce merge‑only workflows, block force pushes, and what trade‑offs to watch for.
Learn how the `needs` keyword lets jobs start as soon as their prerequisites finish, enabling parallel execution and shorter pipeline runs.
How to centralize GitLab pipeline definitions in a shared template project using pinned refs, with attention to trust boundaries, validation, and failure modes.
Control dependency reuse in GitLab CI/CD with cache:key, paths, and policy so feature-branch pipelines install faster without stale modules.