Skip to content
Snippets Groups Projects
Commit d08a002e authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'add-retry-for-system-failures' into 'main'

fix: handle temporary CI systems blips better

See merge request gitlab-com/gl-infra/common-ci-tasks!38
parents aea614f4 0ea6a014
No related branches found
No related tags found
No related merge requests found
Pipeline #13625786 failed
Loading
Loading
@@ -36,3 +36,9 @@ validate_asdf_tool_versions:
- .tool-versions
- .ruby-version
- .gitlab-ci-asdf-versions.yml
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
Loading
Loading
@@ -12,3 +12,9 @@ editorconfig_check:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
Loading
Loading
@@ -12,3 +12,9 @@ go_mod_tidy:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
Loading
Loading
@@ -12,3 +12,9 @@ go_unittests:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
Loading
Loading
@@ -28,3 +28,9 @@ golangci_lint:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
Loading
Loading
@@ -12,6 +12,11 @@ goreleaser_validate:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
exists:
- .goreleaser.yml
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
 
goreleaser:
stage: release
Loading
Loading
@@ -39,3 +44,9 @@ goreleaser:
-e GITLAB_TOKEN -e CI_REGISTRY_IMAGE \
-e CI_SERVER_URL \
goreleaser/goreleaser:v${GL_ASDF_GORELEASER_VERSION} release --rm-dist
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
Loading
Loading
@@ -25,3 +25,9 @@ renovate_bot:
key: renovate-cache
paths:
- renovate-cache
# Automatically retry on any system blips
retry:
max: 2
when:
- runner_system_failure
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment