Skip to content

Commit 998b461

Browse files
committed
Always publish a build scan in CI
Minimal backport of #48348
1 parent a2a2667 commit 998b461

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gradle/build-scan.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildScan {
66
String jobName = System.getenv('JOB_NAME')
77

88
// Accept Gradle ToS when project property org.elasticsearch.acceptScanTOS=true or this is an Elastic CI build
9-
if (jenkinsUrl?.host?.endsWith('elastic.co') || Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
10-
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
11-
termsOfServiceAgree = 'yes'
9+
if (jenkinsUrl?.host?.endsWith('elastic.co')) {
10+
publishAlways()
11+
buildScan.server = 'https://gradle-enterprise.elastic.co'
1212
}
1313

1414
// Jenkins-specific build scan metadata
@@ -50,4 +50,4 @@ buildScan {
5050
} else {
5151
tag 'LOCAL'
5252
}
53-
}
53+
}

0 commit comments

Comments
 (0)