Build: Use property for disabling/enabling local build cache
This commit is contained in:
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user