If you checkout step is intermittently failing with the following error (or similar) :
The above error is often caused by networking issues. These issues often times occur when the size of your repository is large. You can resolve this issue by either using a custom checkout step (in a run command) with retries or a custom checkout step to implement a partial or shallow clone .
You can find more details on How to retry an intermittently failing step here. Your custom command will look like the following:
- run: for i in $(seq 1 5); do checkout && s=0 && break || s=$? && sleep 5; done; (exit $s)
Comments
Please sign in to leave a comment.