jenkins: require successful `git fetch` before running tests
This commit is contained in:
parent
2cf6110860
commit
35ff37b1e2
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue