mirror of https://github.com/apache/kafka.git
KAFKA-18153 remove jenkins settings from settings.gradle (#18026)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
f60382bf21
commit
81447c7c95
|
@ -19,24 +19,20 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
|
def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
|
||||||
def isJenkins = System.getenv('JENKINS_URL') != null
|
|
||||||
def isCI = isGithubActions || isJenkins
|
|
||||||
def currentJvm = JavaVersion.current()
|
def currentJvm = JavaVersion.current()
|
||||||
|
|
||||||
develocity {
|
develocity {
|
||||||
server = "https://ge.apache.org"
|
server = "https://ge.apache.org"
|
||||||
projectId = "kafka"
|
projectId = "kafka"
|
||||||
buildScan {
|
buildScan {
|
||||||
uploadInBackground = !isCI
|
uploadInBackground = !isGithubActions
|
||||||
publishing.onlyIf { it.authenticated }
|
publishing.onlyIf { it.authenticated }
|
||||||
obfuscation {
|
obfuscation {
|
||||||
// This obfuscates the IP addresses of the build machine in the build scan.
|
// 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.
|
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
|
||||||
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
|
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
|
||||||
}
|
}
|
||||||
if (isJenkins) {
|
if (isGithubActions) {
|
||||||
tag "jenkins"
|
|
||||||
} else if (isGithubActions) {
|
|
||||||
tag "github"
|
tag "github"
|
||||||
} else {
|
} else {
|
||||||
tag "local"
|
tag "local"
|
||||||
|
@ -49,7 +45,7 @@ buildCache {
|
||||||
local {
|
local {
|
||||||
// This allows the build cache to be used locally or on GitHub Actions.
|
// 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
|
// Using the cache on GH should be safe since each job is run on a new VM
|
||||||
enabled = !isJenkins
|
enabled = true
|
||||||
}
|
}
|
||||||
|
|
||||||
remote(develocity.buildCache) {
|
remote(develocity.buildCache) {
|
||||||
|
|
Loading…
Reference in New Issue