forked from etiennestuder/teamcity-build-scan-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
35 lines (28 loc) · 981 Bytes
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
plugins {
id 'com.gradle.develocity' version '3.17.4'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.1'
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.8.0'
}
def isCI = System.getenv('CI') != null
develocity {
server = 'https://etiennestuder.gradle-enterprise.cloud'
buildScan {
publishing.onlyIf { it.isAuthenticated() }
uploadInBackground = !isCI
obfuscation { ipAddresses { addresses -> addresses.collect { address -> '0.0.0.0' } } }
}
}
buildCache {
local {
enabled = true
}
remote(develocity.buildCache) {
enabled = true
// Check access key presence to avoid build cache errors on PR builds when access key is not present
def accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
push = isCI && accessKey
}
}
include ':agent'
include ':agent:service-message-maven-extension'
rootProject.name = 'teamcity-build-scan-plugin'