aboutsummaryrefslogtreecommitdiffstats
path: root/settings.gradle
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-08-29 10:25:32 +0200
committersonartech <sonartech@sonarsource.com>2018-09-19 10:51:43 +0200
commit3f671cfcace8552a32b78a9e3327394d85f863ba (patch)
tree0b6e92572551dc464d0e90ee5e3ae217dbf6305b /settings.gradle
parent6ab822a9d79091837ee96ff27317597bbb6c6e5e (diff)
downloadsonarqube-3f671cfcace8552a32b78a9e3327394d85f863ba.tar.gz
sonarqube-3f671cfcace8552a32b78a9e3327394d85f863ba.zip
SONAR-11268 replace Jenkins by Cirrus CI
Diffstat (limited to 'settings.gradle')
-rw-r--r--settings.gradle13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings.gradle b/settings.gradle
index 535542fa019..38a3b8713d5 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -37,3 +37,16 @@ File extraSettings = new File(rootDir, 'private/settings.gradle')
if (extraSettings.exists()) {
apply from: extraSettings
}
+
+ext.isCiServer = System.getenv().containsKey("CI")
+ext.buildCacheHost = System.getenv().getOrDefault("CIRRUS_HTTP_CACHE_HOST", "localhost:12321")
+buildCache {
+ local {
+ enabled = !isCiServer
+ }
+ remote(HttpBuildCache) {
+ url = "http://" + buildCacheHost + "/"
+ enabled = isCiServer
+ push = true
+ }
+}