jenkins: require successful `git fetch` before running tests

This commit is contained in:
Hans-Christoph Steiner 2017-11-27 10:06:47 +01:00
parent 2cf6110860
commit 35ff37b1e2
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ cd $WORKSPACE
# this can be handled in the jenkins job, or here:
if [ -e fdroiddata ]; then
cd fdroiddata
git remote update -p
while ! git fetch origin --tags --prune; do sleep 10; done
git checkout master
git reset --hard origin/master
# keep all the cloned source repos

View File

@ -68,7 +68,7 @@ fi
# this can be handled in the jenkins job, or here:
if [ -e fdroiddata ]; then
cd fdroiddata
while ! git fetch; do sleep 1; done
while ! git fetch origin --tags --prune; do sleep 10; done
git remote update -p
git checkout master
git reset --hard origin/master