Put retry loop around gerrit-git-prep

As an attempt to mitigate git mirror disconnects.

Change-Id: I7f2901580e8507a6455d013cd8929394e9ef0ab3
This commit is contained in:
Monty Taylor 2015-04-28 08:53:09 -04:00
parent 8bc8d33f26
commit 9450ee37e3

@ -1,7 +1,17 @@
- builder:
name: gerrit-git-prep
builders:
- shell: "/usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org"
- shell: |
#!/bin/bash
count=0
until /usr/local/jenkins/slave_scripts/gerrit-git-prep.sh https://review.openstack.org git://git.openstack.org ; do
count=$(($count + 1))
if [ $count -eq 3 ]; then
echo "Maximum of 3 git retries reached"
exit 1
fi
sleep 5
done
- builder:
name: branch-git-prep