To avoid errors in case of mirror race conditions, we currently
(try to) ignore mirror errors, and check for presence of the
reference after the mirror try. This requires having to play
tricks to avoid errors when the job is run in the check pipeline,
due to missing zuul.newrev. And for some reason, it does not seem
to work[1].
Instead of ignoring errors and running an additional check, let's
just retry the mirror operation three times.
The race is rare-enough that it's very unlikely that we would
hit it three times in a row.
[1] https://zuul.openstack.org/build/4966cd5617624d348fa0048de14f1f96
Change-Id: Ifa4f25ad8c961a1b2dbd9f07a3a1e4652b790c9c