Unverified Commit 2eddfe6c authored by Johnatas's avatar Johnatas Committed by GitHub

Add retry for clone step (#7862)

* Add retry for clone step Signed-off-by: 's avatarJohnatas <johnatas.santos@suse.com>
parent 782a3a1c
...@@ -11,6 +11,9 @@ trigger: ...@@ -11,6 +11,9 @@ trigger:
exclude: exclude:
- cron - cron
clone:
retries: 3
steps: steps:
- name: skipfiles - name: skipfiles
image: plugins/git image: plugins/git
...@@ -203,6 +206,9 @@ trigger: ...@@ -203,6 +206,9 @@ trigger:
exclude: exclude:
- cron - cron
clone:
retries: 3
steps: steps:
- name: skipfiles - name: skipfiles
image: plugins/git image: plugins/git
...@@ -309,6 +315,9 @@ trigger: ...@@ -309,6 +315,9 @@ trigger:
exclude: exclude:
- cron - cron
clone:
retries: 3
steps: steps:
- name: skipfiles - name: skipfiles
image: plugins/git image: plugins/git
...@@ -429,6 +438,10 @@ steps: ...@@ -429,6 +438,10 @@ steps:
- git clone $DRONE_GIT_HTTP_URL . - git clone $DRONE_GIT_HTTP_URL .
- git fetch origin $DRONE_COMMIT_REF - git fetch origin $DRONE_COMMIT_REF
- git checkout $DRONE_COMMIT -b origin/$DRONE_TARGET_BRANCH - git checkout $DRONE_COMMIT -b origin/$DRONE_TARGET_BRANCH
retry:
max: 3
delay: 5s
- name: skipfiles - name: skipfiles
image: alpine/git:v2.30.2-s390x image: alpine/git:v2.30.2-s390x
...@@ -638,6 +651,9 @@ platform: ...@@ -638,6 +651,9 @@ platform:
os: linux os: linux
arch: amd64 arch: amd64
clone:
retries: 3
steps: steps:
- name: skipfiles - name: skipfiles
image: plugins/git image: plugins/git
...@@ -688,6 +704,9 @@ platform: ...@@ -688,6 +704,9 @@ platform:
os: linux os: linux
arch: amd64 arch: amd64
clone:
retries: 3
steps: steps:
- name: skipfiles - name: skipfiles
image: plugins/git image: plugins/git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment