Pārlūkot izejas kodu

Fix teamcity init script

Mark Vieira 5 gadi atpakaļ
vecāks
revīzija
b3d833f783
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      .ci/teamcity.init.gradle

+ 4 - 4
.ci/teamcity.init.gradle

@@ -17,11 +17,11 @@
  * under the License.
  */
 
-final String buildCacheUrl = System.getProperty('org.elasticsearch.build.cache.url')
-final boolean buildCachePush = Boolean.valueOf(System.getProperty('org.elasticsearch.build.cache.push', 'false'))
+gradle.settingsEvaluated { settings ->
+  String buildCacheUrl = System.getProperty('org.elasticsearch.build.cache.url')
+  boolean buildCachePush = Boolean.valueOf(System.getProperty('org.elasticsearch.build.cache.push', 'false'))
 
-if (buildCacheUrl) {
-  gradle.settingsEvaluated { settings ->
+  if (buildCacheUrl) {
     settings.buildCache {
       local {
         // Disable the local build cache in CI since we use ephemeral workers and it incurs an IO penalty