From 0e35cb378b376d4cb1e490ae21b6ead773a0f146 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Apr 2016 13:29:07 +0300 Subject: gitlab-ci: add workaround for network issues in runners. --- gitlab-ci/clientdata.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gitlab-ci/clientdata.sh b/gitlab-ci/clientdata.sh index d92c241..0561788 100755 --- a/gitlab-ci/clientdata.sh +++ b/gitlab-ci/clientdata.sh @@ -7,11 +7,23 @@ mkdir shared echo >shared/error.log echo ${CI_BUILD_ID} >shared/buildid.log +function gitclone { + git clone $* + if [ "$?" != 0 ]; then + sleep 1s + git clone $* + if [ "$?" != 0 ]; then + sleep 3s + git clone $* + fi + fi +} + cd .. ln -s clientdata client-data rm -rf music -git clone --depth 1 https://gitlab.com/evol/evol-music.git music +gitclone --depth 1 https://gitlab.com/evol/evol-music.git music cd tools/testxml -- cgit v1.2.3-70-g09d2