Skip to content

Commit

Permalink
Capture build scans on ge.apache.org to benefit from deep build insig…
Browse files Browse the repository at this point in the history
…hts (#5411)
  • Loading branch information
clayburn authored May 24, 2023
1 parent ba871e5 commit 37605b4
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,36 @@
*/

plugins {
id "com.gradle.enterprise" version "3.10.2"
id 'com.gradle.enterprise' version '3.13.2'
id 'com.gradle.common-custom-user-data-gradle-plugin' version '1.10'
}

def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
def isJenkins = System.getenv('JENKINS_URL') != null
def isCI = isGithubActions || isJenkins

gradleEnterprise {
server = "https://ge.apache.org"
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
publishAlwaysIf(System.getenv('CI') != null)
capture { taskInputFiles = true }
uploadInBackground = !isCI
publishAlways()
publishIfAuthenticated()
obfuscation {
// This obfuscates the IP addresses of the build machine in the build scan.
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
}
}
}

buildCache {
local {
enabled = !isCI
}

remote(gradleEnterprise.buildCache) {
enabled = false
}
}

Expand Down

0 comments on commit 37605b4

Please sign in to comment.