From cad69832b87e374d7295728fa10c73462d27e694 Mon Sep 17 00:00:00 2001 From: Johnatas Date: Tue, 4 Jul 2023 11:09:30 -0300 Subject: [PATCH 1/2] Add retry for clone step Signed-off-by: Johnatas --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.drone.yml b/.drone.yml index faeaf27830bb..cfb34a47cb30 100644 --- a/.drone.yml +++ b/.drone.yml @@ -429,6 +429,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 From b1fe26b11ac266cae3c7fc418708505b1c223e3e Mon Sep 17 00:00:00 2001 From: Johnatas Date: Tue, 4 Jul 2023 19:09:35 -0300 Subject: [PATCH 2/2] Add clone step retry for build steps Signed-off-by: Johnatas --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index cfb34a47cb30..3cf71c7f3b7a 100644 --- a/.drone.yml +++ b/.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 @@ -642,6 +651,9 @@ platform: os: linux arch: amd64 +clone: + retries: 3 + steps: - name: skipfiles image: plugins/git @@ -692,6 +704,9 @@ platform: os: linux arch: amd64 +clone: + retries: 3 + steps: - name: skipfiles image: plugins/git