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}")
|
logger.info("pushToBuildCache=${buildProperties.pushToBuildCache}")
|
||||||
|
|
||||||
buildCache {
|
buildCache {
|
||||||
if (buildProperties.isTeamcityBuild) {
|
local {
|
||||||
local {
|
enabled = buildProperties.localBuildCacheEnabled
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buildProperties.buildCacheUrl != null) {
|
if (buildProperties.buildCacheUrl != null) {
|
||||||
|
|||||||
+2
-4
@@ -52,10 +52,8 @@ logger.info("buildCacheUrl=${buildProperties.buildCacheUrl}")
|
|||||||
logger.info("pushToBuildCache=${buildProperties.pushToBuildCache}")
|
logger.info("pushToBuildCache=${buildProperties.pushToBuildCache}")
|
||||||
|
|
||||||
buildCache {
|
buildCache {
|
||||||
if (buildProperties.isTeamcityBuild) {
|
local {
|
||||||
local {
|
enabled = buildProperties.localBuildCacheEnabled
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buildProperties.buildCacheUrl != null) {
|
if (buildProperties.buildCacheUrl != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user