Build: Use property for disabling/enabling local build cache

This commit is contained in:
Vyacheslav Gerasimov
2019-12-04 16:45:49 +03:00
parent bfcac5b091
commit 68ce5dbd90
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -30,10 +30,8 @@ logger.info("buildCacheUrl=${buildProperties.buildCacheUrl}")
logger.info("pushToBuildCache=${buildProperties.pushToBuildCache}")
buildCache {
if (buildProperties.isTeamcityBuild) {
local {
enabled = false
}
local {
enabled = buildProperties.localBuildCacheEnabled
}
if (buildProperties.buildCacheUrl != null) {
+2 -4
View File
@@ -52,10 +52,8 @@ logger.info("buildCacheUrl=${buildProperties.buildCacheUrl}")
logger.info("pushToBuildCache=${buildProperties.pushToBuildCache}")
buildCache {
if (buildProperties.isTeamcityBuild) {
local {
enabled = false
}
local {
enabled = buildProperties.localBuildCacheEnabled
}
if (buildProperties.buildCacheUrl != null) {