Skip to content

Commit e91b2ef

Browse files
committed
Let the Gradle wrapper retry its distribution download
CI died on 'Attempt 1/1 failed: Unexpected end of file from server' while fetching the distribution zip. The wrapper was configured with retries=0, so a single dropped connection failed the job, and a 10s timeout is tight for a 130 MB download behind a redirect. Three retries with a 1s backoff, and a 60s timeout.
1 parent 22a3999 commit e91b2ef

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
4-
networkTimeout=10000
5-
retries=0
6-
retryBackOffMs=500
4+
networkTimeout=60000
5+
retries=3
6+
retryBackOffMs=1000
77
validateDistributionUrl=true
88
zipStoreBase=GRADLE_USER_HOME
99
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)