From 41e3158c26d48be2ba09074e92b9f17f59ef3c70 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Tue, 26 Oct 2021 17:34:55 +0700 Subject: [PATCH] ci: Add retries on runner system failures --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 108b66ce79..80f0877ce3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -152,6 +152,12 @@ before_script: - export PYTHONPATH="$IDF_PATH/tools:$IDF_PATH/tools/ci/python_packages:$PYTHONPATH" - *fetch_submodules +default: + retry: + max: 2 + # In case of a runner failure we could hop to another one, or a network error could go away. + when: runner_system_failure + include: - '/tools/ci/config/pre_check.yml' - '/tools/ci/config/build.yml'