Use property to control build cache push instead of CI env variable s… (#998)

* Use property to control build cache push instead of CI env variable since many builds have that set.

* Check env instead.
This commit is contained in:
Anuraag Agrawal 2020-08-16 01:55:41 +09:00 committed by GitHub
parent 50a7ff6562
commit 3072efc90f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ buildCache {
remote(com.github.burrunan.s3cache.AwsS3BuildCache) { remote(com.github.burrunan.s3cache.AwsS3BuildCache) {
region = 'us-west-2' region = 'us-west-2'
bucket = 'opentelemetry-java-instrumentation-gradle-test1' bucket = 'opentelemetry-java-instrumentation-gradle-test1'
push = isCI push = System.getenv('S3_BUILD_CACHE_ACCESS_KEY_ID') != null
} }
} }