At LinkedIn we are trying to figure out the best strategy to deal with flaky downloads from our Artifactory. We run 60K Gradle builds per day and 20 of them fails when getting data from our Artifactory.
Normally, Gradle should try all repositories in the chain to resolve a dependency. We noticed that for some kind of connection failures, Gradle does not try next repository in the chain. Here is an example gist.
- Is above by design? It would be helpful to try connecting to the next repo is the connection to previous repo fails.
- Can you recommend us a way to deal with network flakiness impacting Gradle builds? Is there a public API so that we can declare a custom repository with retry logic? Any recommendations / pointers would be useful!