From 80f5a1af5dd80db7b7f05a6296b61e855b13fb67 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com> Date: Wed, 17 Nov 2021 14:30:33 +0200 Subject: [PATCH] Add retry failed CI jobs twice (#429) --- .gitlab-ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 502e70b..07e8b95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ # stages: # build: # - Runs on commits on master or tags that match the pattern "v[0-9]+\.[0-9]+.*$". (e.g. 1.0, v2.1rc1) -# deploy-staging: +# deploy-staging: # - Runs on commits on master or tags that match the pattern v1.0, v2.1rc1 (continues deployment) # deploy-production: # - Runs on tags that match the pattern v1.0, v2.1rc1 (manual deployment) @@ -11,12 +11,12 @@ variables: # Build Variables (Mandatory) CONTAINER_REPO: "" DOCKERFILE_DIRECTORY: "" - + # Deploy Variables (Mandatory) HELM_NAMESPACE: "substrate-telemetry" HELM_RELEASE_NAME: "substrate-telemetry" HELM_CHART: "parity/substrate-telemetry" - + # Deploy Variables (Optional) HELM_REPO_NAME: "parity" HELM_REPO_URL: "https://paritytech.github.io/helm-charts/" @@ -47,6 +47,12 @@ default: else export DOCKER_IMAGE_TAG="${CI_COMMIT_SHORT_SHA}-beta" fi + retry: + max: 2 + when: + - runner_system_failure + - unknown_failure + - api_failure stages: - build