What is `retry`, `timeout` and `interruptible` in GitLab CI?
IntermediateConceptGitLab CI
Answer
retry: { max: 2, when: [runner_system_failure, stuck_or_timeout_failure] } re-runs on infrastructure problems only. timeout: 20 minutes limits a job (bounded by the runner's maximum). interruptible: true marks a job as safe to cancel when a newer pipeline on the same ref starts (with "Auto-cancel redundant pipelines" enabled). Do not mark deploy jobs interruptible.
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?Intermediate