From: Stefan Metzmacher Date: Wed, 23 Dec 2020 15:49:19 +0000 (+0100) Subject: .gitlab-ci.yml: be more resilient to intrastructure failures X-Git-Tag: tevent-0.11.0~1177 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e466bac9a8addf5c35d287874078a940a0e72916;p=thirdparty%2Fsamba.git .gitlab-ci.yml: be more resilient to intrastructure failures Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- 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