We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2a2667 commit 998b461Copy full SHA for 998b461
gradle/build-scan.gradle
@@ -6,9 +6,9 @@ buildScan {
6
String jobName = System.getenv('JOB_NAME')
7
8
// 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'
+ if (jenkinsUrl?.host?.endsWith('elastic.co')) {
+ publishAlways()
+ buildScan.server = 'https://gradle-enterprise.elastic.co'
12
}
13
14
// Jenkins-specific build scan metadata
@@ -50,4 +50,4 @@ buildScan {
50
} else {
51
tag 'LOCAL'
52
53
-}
+}
0 commit comments