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