[Build] allow empty build cache url to disable it
4af1970b28 allows it only for the included build
This commit is contained in:
committed by
Space Team
parent
a871fa9a64
commit
2675531624
+2
-2
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user