Disable the use of artifactory in CI
@@ -10,6 +10,8 @@ initscript {
}
}
+boolean USE_ARTIFACTORY=false
+
['VAULT_ADDR', 'VAULT_ROLE_ID', 'VAULT_SECRET_ID'].each {
if (System.env."$it" == null) {
throw new GradleException("$it must be set!")
@@ -37,10 +39,11 @@ final Vault vault = new Vault(
)
.withRetries(5, 1000)
+
+if (USE_ARTIFACTORY) {
final Map<String,String> artifactoryCredentials = vault.logical()
.read("secret/elasticsearch-ci/artifactory.elstc.co")
.getData();
-
logger.info("Using elastic artifactory repos")
Closure configCache = {
return {
@@ -70,6 +73,10 @@ projectsLoaded {
maven configCache()
}
}
+ }
+}
+
+projectsLoaded {
rootProject {
project.pluginManager.withPlugin('com.gradle.build-scan') {
buildScan.server = 'https://gradle-enterprise.elastic.co'
@@ -77,6 +84,7 @@ projectsLoaded {
}
}
+
final String buildCacheUrl = System.getProperty('org.elasticsearch.build.cache.url')
final boolean buildCachePush = Boolean.valueOf(System.getProperty('org.elasticsearch.build.cache.push', 'false'))
