Populate remote Gradle build cache from CI jobs
This commit is contained in:
parent
43627332cf
commit
b771afda5b
|
@ -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
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue