Skip to content

Commit e42a37d

Browse files
authored
Reinstate usage of READ_ONLY_REMOTE_GRADLE_CACHE to avoid wrong cache hits (#4853)
1 parent ac020bc commit e42a37d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

settings.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ buildCache {
4242
local {
4343
enabled = !isCI
4444
}
45-
remote(HttpBuildCache) {
46-
push = isCI
45+
remote(HttpBuildCache) {
46+
push = isCI && !System.getenv("READ_ONLY_REMOTE_GRADLE_CACHE")
4747
enabled = true
48-
url = 'https://ge.testcontainers.org/cache/'
48+
url = 'https://ge.testcontainers.org/cache/'
4949
credentials {
5050
username = 'ci'
5151
password = System.getenv("GRADLE_ENTERPRISE_CACHE_PASSWORD")

0 commit comments

Comments
 (0)