From 27921c38cecec5e02ad85360b881fd1991142456 Mon Sep 17 00:00:00 2001 From: Scott Wittenburg Date: Fri, 21 Oct 2022 10:35:20 -0600 Subject: gitlab: Retry protected publish jobs in certain cases (#32496) When we lose a running pod (possibly loss of spot instance) or encounter some other infrastructure-related failure of this job, we need to retry it. This retries the job the maximum number of times in those cases. --- share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share') diff --git a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml index 17c16e16d6..8098d6f5fe 100644 --- a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml +++ b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml @@ -91,6 +91,9 @@ protected-publish: extends: [ ".protected" ] image: "ghcr.io/spack/python-aws-bash:0.0.1" tags: ["spack", "public", "medium", "aws", "x86_64"] + retry: + max: 2 + when: ["runner_system_failure", "stuck_or_timeout_failure"] variables: AWS_ACCESS_KEY_ID: ${PROTECTED_MIRRORS_AWS_ACCESS_KEY_ID} AWS_SECRET_ACCESS_KEY: ${PROTECTED_MIRRORS_AWS_SECRET_ACCESS_KEY} -- cgit v1.2.3-60-g2f50