Skip to content

Commit 37605b4

Browse files
authored
Capture build scans on ge.apache.org to benefit from deep build insights (#5411)
1 parent ba871e5 commit 37605b4

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

settings.gradle

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,36 @@
1616
*/
1717

1818
plugins {
19-
id "com.gradle.enterprise" version "3.10.2"
19+
id 'com.gradle.enterprise' version '3.13.2'
20+
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
2021
}
2122

23+
def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
24+
def isJenkins = System.getenv('JENKINS_URL') != null
25+
def isCI = isGithubActions || isJenkins
26+
2227
gradleEnterprise {
28+
server = "https://ge.apache.org"
2329
buildScan {
24-
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
25-
termsOfServiceAgree = 'yes'
26-
publishAlwaysIf(System.getenv('CI') != null)
30+
capture { taskInputFiles = true }
31+
uploadInBackground = !isCI
32+
publishAlways()
33+
publishIfAuthenticated()
34+
obfuscation {
35+
// This obfuscates the IP addresses of the build machine in the build scan.
36+
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
37+
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
38+
}
39+
}
40+
}
41+
42+
buildCache {
43+
local {
44+
enabled = !isCI
45+
}
46+
47+
remote(gradleEnterprise.buildCache) {
48+
enabled = false
2749
}
2850
}
2951

0 commit comments

Comments
 (0)