Commit 91e76ab
authored
fix gradle caching (#4270)
## Motivation and Context
Still seeing intermittent transient failures due to Gradle wrapper
failing to download
## Description
#4217 was meant to fix
this, I think we just missed that the installation and wrapper is being
downloaded to an intermediate image rather than the final image. The
final image did not have the gradle wrapper binary nor the env variable
related to it set.
```
> env | sort
...
GRADLE_USER_HOME=/home/build/.gradle
...
> [localbuild@047e7e4b0e64 build]$ ls -lsa /home/build/.gradle
total 40
4 drwxr-xr-x. 10 build build 4096 Aug 15 14:39 .
4 drwxrwxr-x. 1 build build 4096 Aug 15 14:54 ..
4 drwxr-xr-x. 7 build build 4096 Aug 15 14:38 caches
4 drwxr-xr-x. 3 build build 4096 Aug 15 14:38 daemon
4 drwxr-xr-x. 2 build build 4096 Aug 15 14:38 jdks
4 drwxr-xr-x. 2 build build 4096 Aug 15 14:39 kotlin-profile
4 drwxr-xr-x. 5 build build 4096 Aug 15 14:38 native
4 drwxr-xr-x. 3 build build 4096 Aug 15 14:38 notifications
4 drwxr-xr-x. 3 build build 4096 Aug 15 14:39 .tmp
4 drwxr-xr-x. 3 build build 4096 Aug 15 14:38 wrapper
```
## Testing
Build image locally and see that gradle wrapper is present and
GRADLE_USER_HOME is set.
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._1 parent ab1adb0 commit 91e76ab
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
| 241 | + | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
| |||
0 commit comments