From 5c22c9803a98ea50a86c7c92f0a870ecaf5eb899 Mon Sep 17 00:00:00 2001 From: Garrison Davis Date: Thu, 2 Mar 2023 10:04:49 -0700 Subject: [PATCH] Add default retries --- .gitlab/.gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 7240f0911..391913e4d 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -12,6 +12,16 @@ include: - template: Security/License-Scanning.gitlab-ci.yml - template: Security/Dependency-Scanning.gitlab-ci.yml +default: + retry: + max: 2 # This is confusing but this means "3 runs at max". + when: + - unknown_failure + - api_failure + - runner_system_failure + - job_execution_timeout + - stuck_or_timeout_failure + variables: GOVERSION: "1.19.3" GOFUTURE: "latest" @@ -22,7 +32,6 @@ variables: cd "$CI_PROJECT_DIR" find . -type f -exec chmod 0644 {} + find . -type d -exec chmod 0755 {} + - # git clean -ffdx # don't do this here, let it happen automatically. fi stages: