1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

jenkins-build-makebuildserver: retry git fetch until it works

It seems that gitlab gives 500 errors a bit too frequently, so keep
retrying the `git pull` until it works so that there isn't a error email
sent out over failed pulls.
This commit is contained in:
Hans-Christoph Steiner 2016-10-26 14:24:14 +02:00
parent 780b0e9502
commit 84dc415837

View File

@ -54,6 +54,7 @@ echo "apt_package_cache = True" >> $WORKSPACE/makebuildserver.config.py
# this can be handled in the jenkins job, or here:
if [ -e fdroiddata ]; then
cd fdroiddata
while ! git fetch; do sleep 1; done
git remote update -p
git checkout master
git reset --hard origin/master