Add a retry mechanism to prevent failed clones in builds
Fixes https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1907
Adds a retry mechanism to prevent failed clones due to 502 or any network error that fails the build automatically.
- 
Documentation created/updated 
- Tests
- 
Added for this feature/bug 
- 
All builds are passing 
 
- 
- 
Branch has no merge conflicts with master(if you do - rebase it please)