I've setup CodeBuild to run our tests when a PR is created/modified (from Bitbucket). But unfortunately, the DOWNLOAD_SOURCE phase sometimes (most times) fails after 3 minutes. After a couple of retries, it will run correctly and take about 50 seconds.
Here is the error I get when it times out:
CLIENT_ERROR: Get "https://################.git/info/refs?service=git-upload-pack": dial tcp #.#.#.#:443: i/o timeout for primary source and source version 0123456789abc
I'm guessing it's Bitbucket that is not responding for some reason. Also, I can't where/how to increase the 3mins timeout in CodeBuild.
Any suggestions?