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