I am working on a Gradle project where we are downloading .jar libraries from our company JFrog Artefactory server. Recently it started to have network problems like low bandwith, downtime, and when this happens our Jenkins jobs are failing.
I researched how to fix this by implementing a retry mechanism and found this already build-in gradle propery - ‘org.gradle.internal.http.retry.maxRetries’. We have this one already in our gradle.properties file - ‘org.gradle.internal.repository.max.retries’, however it doesn’t retry the connection in our scenario. We are using Gralde 7.3.3. So will org.gradle.internal.repository.max.retries do the job for this failure?
That property does not exist.
It was introduced with that name before 5.0.0-rc1, but was renamed before that release to org.gradle.internal.repository.max.tentatives.
What it does though I don’t know and whether it would help you to increase it.
Well we do have these two in the gradle.properties as well:
systemProp.org.gradle.internal.repository.max.retries=10
systemProp.org.gradle.internal.repository.initial.backoff=500
However they do not restart the failed connection to our company JFrog Artefactory server. Is there another property which could do this?