浏览代码

Fix teamcity init script

Mark Vieira 5 年之前
父节点
当前提交
b3d833f783
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      .ci/teamcity.init.gradle

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

@@ -17,11 +17,11 @@
  * under the License.
  * 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 {
     settings.buildCache {
       local {
       local {
         // Disable the local build cache in CI since we use ephemeral workers and it incurs an IO penalty
         // Disable the local build cache in CI since we use ephemeral workers and it incurs an IO penalty