]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
.gitlab-ci.yml: be more resilient to intrastructure failures
authorStefan Metzmacher <metze@samba.org>
Wed, 23 Dec 2020 15:49:19 +0000 (16:49 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Apr 2021 08:23:35 +0000 (08:23 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
.gitlab-ci.yml

index 8aea3766ba913a8b848f7bacfdaac53a052316ac..28aa76c63ea78e65f714b25de65ee6ae7eeecca0 100644 (file)
@@ -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