]> source.dussan.org Git - sonarqube.git/commitdiff
Use build-in Cirrus CI HTTP cache for gradle build cache.
authorMalena Ebert <malena.ebert@sonarsource.com>
Mon, 4 Jan 2021 11:03:30 +0000 (12:03 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 5 Jan 2021 20:15:14 +0000 (20:15 +0000)
settings.gradle

index 91c5df3c436773e117c2b1e7883bc56dac63a4fd..89e53c7828fc76ca7d8e9429a61b526f8bc34ef0 100644 (file)
@@ -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