Controlling GitLab CI Artifact Expiration to Tame Storage Costs
GitLab CI artifacts accumulate by default, inflating repo size and slowing fetches. Learn how to set expiration via UI or YAML, handle version differences, and verify cleanup.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
GitLab CI artifacts accumulate by default, inflating repo size and slowing fetches. Learn how to set expiration via UI or YAML, handle version differences, and verify cleanup.
GitLab CI artifacts are kept forever unless you set artifacts: expire_in. Learn how to configure per-job retention, avoid common mistakes, and verify cleanup actually happens.
Your GitLab pipeline has a cache block but reinstalls everything every run. Learn to read the cache lines in job logs, match symptoms to causes, and fix keys, paths, and runner storage.
Learn how to architect GitLab Runners using the Docker executor to ensure job isolation, prevent host escapes, and manage shared CI/CD resources securely.
Use GitLab’s cache feature to store Maven dependencies across jobs, cutting pipeline times from minutes to seconds. Learn how to configure keys, paths, and best‑practice cache usage in this practical guide.
GitLab Runners utilize a polling mechanism to request available jobs from the GitLab Rails API. While concurrency is manageable via the concurrent setting in config.toml and the global instance limits, the interaction between multiple runners and the server-side job queue introduces complexity during high-volume bursts. When numerous runners with overlapping
Reproducibility gap across GitLab CI/CD runners A team using GitLab CI/CD wants identical job execution environments across multiple runner hosts so that the same commit produces the same artifacts regardless of which runner picks up the job. The .gitlab-ci.yml image keyword accepts registry tags or Docker-style digests, and include: project can reference an
GitLab CI/CD variables marked as Masked are hidden from job logs through a string-replacement mechanism that targets the exact stored value. When a job script transforms that value—for example, piping a secret through base64 or embedding it in a JSON payload—the transformed representation no longer matches the original variable string and can appear in plain