Populate remote Gradle build cache from CI jobs

This commit is contained in:
Steve Ebersole 2024-01-26 08:12:27 -06:00
parent 7ef13e1f91
commit 81ff3dd656
1 changed files with 1 additions and 2 deletions

View File

@ -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/'
}
}