Populate remote Gradle build cache from CI jobs

This commit is contained in:
Steve Ebersole 2024-01-19 11:58:26 -06:00
parent 43627332cf
commit b771afda5b
3 changed files with 3 additions and 2 deletions

View File

@ -82,6 +82,7 @@ jobs:
- name: Run build script - name: Run build script
env: env:
RDBMS: ${{ matrix.rdbms }} RDBMS: ${{ matrix.rdbms }}
POPULATE_REMOTE_GRADLE_CACHE: true
GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_TOKEN }}" GRADLE_ENTERPRISE_ACCESS_KEY: "${{ secrets.DEVELOCITY_ACCESS_TOKEN }}"
run: ./ci/build-github.sh run: ./ci/build-github.sh
shell: bash shell: bash

View File

@ -11,7 +11,7 @@
ext { ext {
isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi() isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi()
populateRemoteBuildCache = getSetting( "POPULATE_REMOTE" ).isPresent() populateRemoteBuildCache = getSetting( "POPULATE_REMOTE_GRADLE_CACHE" ).isPresent()
} }
private static boolean isJenkins() { private static boolean isJenkins() {

View File

@ -1,6 +1,6 @@
ext { ext {
isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi() isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi()
populateRemoteBuildCache = getSetting( "POPULATE_REMOTE" ).isPresent() populateRemoteBuildCache = getSetting( "POPULATE_REMOTE_GRADLE_CACHE" ).isPresent()
} }
private static boolean isJenkins() { private static boolean isJenkins() {