HHH-17551 Updated build cache config to only push when authenticated

This commit is contained in:
Gasper Kojek 2023-12-11 16:41:47 +01:00 committed by Christian Beikov
parent 55431f292b
commit 71c95f1699
1 changed files with 3 additions and 1 deletions

View File

@ -288,7 +288,9 @@ buildCache {
} }
remote(HttpBuildCache) { remote(HttpBuildCache) {
enabled = true enabled = true
push = settings.ext.populateRemoteBuildCache // 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/' url = 'https://ge.hibernate.org/cache/'
} }
} }