From 7161997c3346416554056813f2e6b4d002a7fb24 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Mon, 22 Jul 2024 23:20:30 +0200 Subject: [PATCH] chore(gitlab): add snippet to retry pipelines on runner failure --- snippets/gitlab/pipeline tasks.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/gitlab/pipeline tasks.yml b/snippets/gitlab/pipeline tasks.yml index 68811bf..d04c027 100644 --- a/snippets/gitlab/pipeline tasks.yml +++ b/snippets/gitlab/pipeline tasks.yml @@ -112,3 +112,8 @@ pulumi update: - >- pulumi update --yes --non-interactive --verbose '3' --parallel "${THREADS:-$(nproc)}" + +do-it-again: + retry: + max: 2 + when: runner_system_failure