diff options
author | Malena Ebert <malena.ebert@sonarsource.com> | 2021-01-04 12:03:30 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-01-05 20:15:14 +0000 |
commit | 8ab6570b7c2c7b707a99247492a28b5e540efb0d (patch) | |
tree | dddcf29c63fa4aeb0e5e0795a75fccc9a33e3190 /settings.gradle | |
parent | 9376f2f075f2475bdaa5f6df158f35479c781fd6 (diff) | |
download | sonarqube-8ab6570b7c2c7b707a99247492a28b5e540efb0d.tar.gz sonarqube-8ab6570b7c2c7b707a99247492a28b5e540efb0d.zip |
Use build-in Cirrus CI HTTP cache for gradle build cache.
Diffstat (limited to 'settings.gradle')
-rw-r--r-- | settings.gradle | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings.gradle b/settings.gradle index 91c5df3c436..89e53c7828f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -50,14 +50,14 @@ include 'sonar-testing-ldap' include 'sonar-ws' include 'sonar-ws-generator' +ext.isCiServer = System.getenv().containsKey("CIRRUS_CI") + // use Settings.getRootDir() so that it doesn't matter which directory you are executing from File extraSettings = new File(rootDir, 'private/settings.gradle') if (extraSettings.exists()) { apply from: extraSettings } -ext.isCiServer = System.getenv().containsKey("CIRRUS_CI") - buildCache { local { enabled = !isCiServer |