Skip to content

Commit 88a2b8f

Browse files
balasankarcAndrew Patterson
authored andcommitted
Retry jobs that depend on external sources automatically
Signed-off-by: Balasankar 'Balu' C <[email protected]>
1 parent 28eb3bb commit 88a2b8f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ fetch-assets:
180180
- if: '$PIPELINE_TYPE =~ /TRIGGERED_(CE|EE)_PIPELINE/'
181181
- if: '$PIPELINE_TYPE == "TRIGGER_CACHE_UPDATE_PIPELINE"'
182182
- if: '$PIPELINE_TYPE == "DURATION_PLOTTER_PIPELINE"'
183+
retry: 2
183184

184185
generate-facts:
185186
extends: .gems-cache
@@ -205,6 +206,7 @@ generate-facts:
205206
- if: '$PIPELINE_TYPE == "FORK_MR_PIPELINE"'
206207
- when: never
207208
needs: []
209+
retry: 2
208210

209211
.notify:
210212
before_script:

gitlab-ci-config/check-packages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ before_script:
5656
- !reference [.common_install_scripts, script]
5757
- apt install -y ${package_name_version_dist} || (echo "Failed to install ${package_name_version_dist}" && exit 1)
5858
tags: !reference [.distribution-amd64-tags]
59+
retry: 2
5960

6061
.yum-install: &yum-install
6162
stage: package
@@ -65,6 +66,7 @@ before_script:
6566
- !reference [.common_install_scripts, script]
6667
- yum install -y ${package_name_version_dist} || (echo "Failed to install ${package_name_version_dist}" && exit 1)
6768
tags: !reference [.distribution-amd64-tags]
69+
retry: 2
6870

6971
.zypper-install: &zypper-install
7072
stage: package
@@ -74,6 +76,7 @@ before_script:
7476
- !reference [.common_install_scripts, script]
7577
- zypper install -y ${package_name_version_dist} || (echo "Failed to install ${package_name_version_dist}" && exit 1)
7678
tags: !reference [.distribution-amd64-tags]
79+
retry: 2
7780

7881
.apt-arm-install: &apt-arm-install
7982
extends: .apt-install

0 commit comments

Comments
 (0)