[Build] allow empty build cache url to disable it

4af1970b28 allows it only for the included build
This commit is contained in:
Alexander.Likhachev
2023-08-09 18:21:48 +02:00
committed by Space Team
parent a871fa9a64
commit 2675531624
2 changed files with 3 additions and 3 deletions
@@ -8,8 +8,8 @@ buildCache {
} }
} }
val remoteBuildCacheUrl = buildProperties.buildCacheUrl val remoteBuildCacheUrl = buildProperties.buildCacheUrl?.trim()
if (remoteBuildCacheUrl != null) { if (!remoteBuildCacheUrl.isNullOrEmpty()) {
remote<HttpBuildCache> { remote<HttpBuildCache> {
url = uri(remoteBuildCacheUrl) url = uri(remoteBuildCacheUrl)
isPush = buildProperties.pushToBuildCache isPush = buildProperties.pushToBuildCache
@@ -48,7 +48,7 @@ buildCache {
} }
} }
val remoteBuildCacheUrl = buildProperties.buildCacheUrl val remoteBuildCacheUrl = buildProperties.buildCacheUrl?.trim()
if (!remoteBuildCacheUrl.isNullOrEmpty()) { if (!remoteBuildCacheUrl.isNullOrEmpty()) {
remote<HttpBuildCache> { remote<HttpBuildCache> {
url = uri(remoteBuildCacheUrl) url = uri(remoteBuildCacheUrl)