File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 - docker_login
99 - ' image=$(echo "$CI_JOB_NAME" | cut -d : -f 2)'
1010 - ' [ -z "$NEED_PROJECT_DOWNLOAD" ] || download_project $image'
11+ retry :
12+ exit_codes :
13+ - 10 # when downloading project fails
1114
1215.single-image-build-base :
1316 extends :
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ function download_project() {
33 version=$( cat versions/$project )
44 echo " Downloading $project at $version "
55 mkdir -p projects
6- curl --output projects/$project .tar.gz -L " https://github.com/code0-tech/$project /archive/$version .tar.gz" || return 1
7- tar -xzf projects/$project .tar.gz -C projects || return 1
6+ curl --output projects/$project .tar.gz -L " https://github.com/code0-tech/$project /archive/$version .tar.gz" || return 10
7+ tar -xzf projects/$project .tar.gz -C projects || return 10
88 rm projects/$project .tar.gz || return 1
99 mv projects/$project -* projects/$project || return 1
1010}
You can’t perform that action at this time.
0 commit comments