Browse Source

Enable the remote build cache in BWC distribution builds (#54691)

Mark Vieira 5 years ago
parent
commit
faca8404df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      distribution/bwc/build.gradle

+ 4 - 0
distribution/bwc/build.gradle

@@ -194,6 +194,10 @@ bwcVersions.forPreviousUnreleased { BwcVersions.UnreleasedVersionInfo unreleased
         if (gradle.startParameter.isOffline()) {
           args "--offline"
         }
+        String buildCacheUrl = System.getProperty('org.elasticsearch.build.cache.url')
+        if (buildCacheUrl) {
+          args "-Dorg.elasticsearch.build.cache.url=${buildCacheUrl}"
+        }
 
         args "-Dbuild.snapshot=true"
         args "-Dscan.tag.NESTED"