GitLab CI/CD 1 · Pipeline basics

Set a timeout and retries

Fail a job that runs too long, and retry it automatically on infrastructure failures.

flaky-job:
  timeout: 15 minutes
  retry:
    max: 2
    when: runner_system_failure

Official GitLab CI/CD 1 documentation

More pipeline basics commands

All pipeline basics commands · GitLab CI/CD 1 cheatsheet

Was this page helpful?