Cache from settings.

This commit is contained in:
aminecmi 2022-08-19 22:30:27 +02:00
parent de43abf019
commit c87473e8f1
3 changed files with 4 additions and 3 deletions

View File

@ -18,4 +18,4 @@ steps:
- name: build
image: mingc/android-build-box:latest
commands:
- ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\""
- ./gradlew :androidApp:build -PignoreGitVersion=true -P appLoginUrl="\"URL\"" -P appLoginUsername="\"LOGIN\"" -P appLoginPassword="\"PASS\"" -P pushCache=false

View File

@ -21,3 +21,4 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
org.gradle.parallel=true
org.gradle.caching=true
ignoreGitVersion=false
pushCache=true

View File

@ -1,4 +1,4 @@
val pushCache = true
val pushCache: String by settings
pluginManagement {
repositories {
@ -14,7 +14,7 @@ buildCache {
isAllowInsecureProtocol = true
isAllowUntrustedServer = true
isUseExpectContinue = true
isPush = pushCache
isPush = (pushCache == "true")
}
}