Gradle remote build cache
This commit is contained in:
parent
fa35e99543
commit
d7c1886aaa
|
@ -82,7 +82,7 @@ fi
|
||||||
# so that CI jobs give a more complete report
|
# so that CI jobs give a more complete report
|
||||||
# and developers can fix code style and non-H2 DB tests in parallel.
|
# and developers can fix code style and non-H2 DB tests in parallel.
|
||||||
if [ -n "$goal" ]; then
|
if [ -n "$goal" ]; then
|
||||||
goal="$goal -x checkstyleMain"
|
goal="$goal -x checkstyleMain -DPOPULATE_REMOTE=true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function logAndExec() {
|
function logAndExec() {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi()
|
isCiEnvironment = isJenkins() || isGitHubActions() || isGenericCi()
|
||||||
populateRemoteBuildCache = getSetting( "POPULATE_REMOTE_GRADLE_CACHE" ).isPresent()
|
populateRemoteBuildCache = isEnabled( "POPULATE_REMOTE_GRADLE_CACHE" )
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isJenkins() {
|
private static boolean isJenkins() {
|
||||||
|
@ -36,6 +36,14 @@ static java.util.Optional<String> getSetting(String name) {
|
||||||
return java.util.Optional.ofNullable(sysProp);
|
return java.util.Optional.ofNullable(sysProp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static boolean isEnabled(String setting) {
|
||||||
|
if ( System.getenv().hasProperty( setting ) ) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return System.hasProperty( setting )
|
||||||
|
}
|
||||||
|
|
||||||
develocity {
|
develocity {
|
||||||
server = 'https://ge.hibernate.org'
|
server = 'https://ge.hibernate.org'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue