Populate remote Gradle build cache from CI jobs
This commit is contained in:
parent
7ef13e1f91
commit
81ff3dd656
|
@ -292,12 +292,11 @@ buildCache {
|
|||
// do not use local build cache for CI jobs, period!
|
||||
enabled = !settings.ext.isCiEnvironment
|
||||
}
|
||||
remote(HttpBuildCache) {
|
||||
remote(gradleEnterprise.buildCache) {
|
||||
enabled = true
|
||||
// Check access key presence to avoid build cache errors on PR builds when access key is not present
|
||||
def accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
|
||||
push = settings.ext.populateRemoteBuildCache && accessKey
|
||||
url = 'https://ge.hibernate.org/cache/'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue