KAFKA-18153 remove jenkins settings from settings.gradle (#18026)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Ken Huang 2024-12-04 23:14:57 +08:00 committed by GitHub
parent f60382bf21
commit 81447c7c95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 7 deletions

View File

@ -19,24 +19,20 @@ plugins {
}
def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
def isJenkins = System.getenv('JENKINS_URL') != null
def isCI = isGithubActions || isJenkins
def currentJvm = JavaVersion.current()
develocity {
server = "https://ge.apache.org"
projectId = "kafka"
buildScan {
uploadInBackground = !isCI
uploadInBackground = !isGithubActions
publishing.onlyIf { it.authenticated }
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"} }
}
if (isJenkins) {
tag "jenkins"
} else if (isGithubActions) {
if (isGithubActions) {
tag "github"
} else {
tag "local"
@ -49,7 +45,7 @@ buildCache {
local {
// This allows the build cache to be used locally or on GitHub Actions.
// Using the cache on GH should be safe since each job is run on a new VM
enabled = !isJenkins
enabled = true
}
remote(develocity.buildCache) {