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 - name: build
image: mingc/android-build-box:latest image: mingc/android-build-box:latest
commands: 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.parallel=true
org.gradle.caching=true org.gradle.caching=true
ignoreGitVersion=false ignoreGitVersion=false
pushCache=true

View File

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