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 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) {
|
||||
|
|
Loading…
Reference in New Issue