From b4f22a52ffc7bbf994cac1afe65a0759463a3dd1 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 21 Aug 2024 19:45:46 +0300 Subject: [PATCH] ci: Add a default retry policy for jobs Automatically retry if it's a system failure or similar Part-of: --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4eed9579..962b93f1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -38,6 +38,14 @@ workflow: default: interruptible: true + # Auto-retry jobs in case of infra failures + retry: + max: 1 + when: + - 'runner_system_failure' + - 'stuck_or_timeout_failure' + - 'scheduler_failure' + - 'api_failure' stages: - "trigger"