Retry release jobs on failure

This commit is contained in:
Snowram 2021-07-31 00:09:54 +02:00
parent 091dae07a4
commit a3851c9214

View File

@ -14,6 +14,8 @@
- if: $CI_PIPELINE_SOURCE != "merge_request_event" && $CI_PIPELINE_SOURCE != "schedule" && ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/)
when: on_success
- when: never
retry:
max: 1
# Template to only run if pushes to master or a tag happened for scheduled builds
.release-nightly-tmp-fix-airshipper:
@ -22,3 +24,5 @@
- if: $CI_PIPELINE_SOURCE == "schedule" && ($CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+/ || $CI_COMMIT_REF_NAME =~ /^r[0-9]+\.[0-9]+/)
when: on_success
- when: never
retry:
max: 1