Skip to content

Use clone strategy if fetching got error

Summary

I use fetch strategy for my 1GB source project. Sometimes contents of .git/ directory gets corruption (probably because previous pipeline was canceled, i think). Because of that, code fetching finishes with error. Any other retries to make the same result ( .git/ directory is still corrupted ).

Expected behavior

I wish if the fetching stage is finished with error, gitlab-runner would keep going with clone strategy.

Used GitLab Runner version

11.11.2