File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -72,15 +72,18 @@ projectsLoaded {
72
72
}
73
73
}
74
74
75
- if (System . env. GRADLE_BUILD_CACHE_URL != null ) {
75
+ final String buildCacheUrl = System . getProperty(' org.elasticsearch.build.cache.url' )
76
+ final boolean buildCachePush = Boolean . valueOf(System . getProperty(' org.elasticsearch.build.cache.push' , ' false' ))
77
+
78
+ if (buildCacheUrl) {
76
79
final Map<String ,String > buildCacheCredentials = vault. logical()
77
80
.read(" secret/elasticsearch-ci/gradle-build-cache" )
78
81
.getData();
79
82
gradle. settingsEvaluated { settings ->
80
83
settings. buildCache {
81
84
remote(HttpBuildCache ) {
82
- url = System . getenv( ' GRADLE_BUILD_CACHE_URL ' )
83
- push = Boolean . valueOf( System . getenv( ' GRADLE_BUILD_CACHE_PUSH ' ) ?: ' false ' )
85
+ url = buildCacheUrl
86
+ push = buildCachePush
84
87
credentials {
85
88
username = buildCacheCredentials. get(" username" )
86
89
password = buildCacheCredentials. get(" password" )
You can’t perform that action at this time.
0 commit comments