Checkout step intermittently failing

If you checkout step is intermittently failing with the following error (or similar) : 

Screen_Shot_2022-05-11_at_9.15.03_AM.png

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) 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.