From e466bac9a8addf5c35d287874078a940a0e72916 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 23 Dec 2020 16:49:19 +0100 Subject: [PATCH] .gitlab-ci.yml: be more resilient to intrastructure failures Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8aea3766ba9..28aa76c63ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,12 @@ stages: - report variables: + # We want to be resilient to runner failures + ARTIFACT_DOWNLOAD_ATTEMPTS: "3" + EXECUTOR_JOB_SECTION_ATTEMPTS: "3" + GET_SOURCES_ATTEMPTS: "3" + RESTORE_CACHE_ATTEMPTS: "3" + # GIT_STRATEGY: fetch GIT_DEPTH: "3" # "--enable-coverage" or "" @@ -122,6 +128,14 @@ include: when: - runner_system_failure - stuck_or_timeout_failure + - api_failure + - runner_unsupported + - stale_schedule + - job_execution_timeout + - archived_failure + - scheduler_failure + - data_integrity_failure + script: # gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the # autobuild name, which means we can define a default template that runs most autobuild jobs -- 2.34.1