travis-ci: retry if Git for Windows CI returns HTTP error 502 or 503
authorLars Schneider <larsxschneider@gmail.com>
Wed, 3 May 2017 21:50:15 +0000 (23:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 May 2017 05:50:44 +0000 (14:50 +0900)
commit016d66f512bbbd7d766f6244d989b4549d5b0d5b
treefd3a98bda3a65d0d77ac817e562cafa59f073748
parent6fa68ff28856f85f8633ea054856e98962f167d0
travis-ci: retry if Git for Windows CI returns HTTP error 502 or 503

The Git for Windows CI web app sometimes returns HTTP errors of
"502 bad gateway" or "503 service unavailable" [1]. We also need to
check the HTTP content because the GfW web app seems to pass through
(error) results from other Azure calls with HTTP code 200.
Wait a little and retry the request if this happens.

[1] https://docs.microsoft.com/en-in/azure/app-service-web/app-service-web-troubleshoot-http-502-http-503

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/run-windows-build.sh