summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorScott Wittenburg <scott.wittenburg@kitware.com>2022-10-21 10:35:20 -0600
committerGitHub <noreply@github.com>2022-10-21 10:35:20 -0600
commit27921c38cecec5e02ad85360b881fd1991142456 (patch)
tree30686283de6778576243fdde2bf1a9046923158b /share
parentf9112a6244dede4d52700c4e86f335b42ec69a49 (diff)
downloadspack-27921c38cecec5e02ad85360b881fd1991142456.tar.gz
spack-27921c38cecec5e02ad85360b881fd1991142456.tar.bz2
spack-27921c38cecec5e02ad85360b881fd1991142456.tar.xz
spack-27921c38cecec5e02ad85360b881fd1991142456.zip
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.
Diffstat (limited to 'share')
-rw-r--r--share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml3
1 files changed, 3 insertions, 0 deletions
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}