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

This commit is contained in:
Mark Vieira 2020-04-02 17:04:56 -07:00
parent f2590b9984
commit 7666276b09
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 4 additions and 0 deletions

View File

@ -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"