mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Add retry for clone step (#7862)
* Add retry for clone step Signed-off-by: Johnatas <johnatas.santos@suse.com>
This commit is contained in:
parent
782a3a1cb4
commit
2eddfe6cf4
19
.drone.yml
19
.drone.yml
@ -11,6 +11,9 @@ trigger:
|
||||
exclude:
|
||||
- cron
|
||||
|
||||
clone:
|
||||
retries: 3
|
||||
|
||||
steps:
|
||||
- name: skipfiles
|
||||
image: plugins/git
|
||||
@ -203,6 +206,9 @@ trigger:
|
||||
exclude:
|
||||
- cron
|
||||
|
||||
clone:
|
||||
retries: 3
|
||||
|
||||
steps:
|
||||
- name: skipfiles
|
||||
image: plugins/git
|
||||
@ -309,6 +315,9 @@ trigger:
|
||||
exclude:
|
||||
- cron
|
||||
|
||||
clone:
|
||||
retries: 3
|
||||
|
||||
steps:
|
||||
- name: skipfiles
|
||||
image: plugins/git
|
||||
@ -429,6 +438,10 @@ steps:
|
||||
- git clone $DRONE_GIT_HTTP_URL .
|
||||
- git fetch origin $DRONE_COMMIT_REF
|
||||
- git checkout $DRONE_COMMIT -b origin/$DRONE_TARGET_BRANCH
|
||||
retry:
|
||||
max: 3
|
||||
delay: 5s
|
||||
|
||||
|
||||
- name: skipfiles
|
||||
image: alpine/git:v2.30.2-s390x
|
||||
@ -638,6 +651,9 @@ platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
clone:
|
||||
retries: 3
|
||||
|
||||
steps:
|
||||
- name: skipfiles
|
||||
image: plugins/git
|
||||
@ -688,6 +704,9 @@ platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
clone:
|
||||
retries: 3
|
||||
|
||||
steps:
|
||||
- name: skipfiles
|
||||
image: plugins/git
|
||||
|
Loading…
Reference in New Issue
Block a user