mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 15:39:49 +00:00
Add build operating system as build scan tag (#45558)
This commit is contained in:
parent
caa2a7738f
commit
285f011bbb
@ -1,8 +1,11 @@
|
|||||||
import nebula.plugin.info.scm.ScmInfoExtension
|
import nebula.plugin.info.scm.ScmInfoExtension
|
||||||
|
import org.elasticsearch.gradle.OS
|
||||||
|
|
||||||
buildScan {
|
buildScan {
|
||||||
def jenkinsUrl = System.getenv('JENKINS_URL') ? new URL(System.getenv('JENKINS_URL')) : null
|
def jenkinsUrl = System.getenv('JENKINS_URL') ? new URL(System.getenv('JENKINS_URL')) : null
|
||||||
|
|
||||||
|
tag OS.current().name()
|
||||||
|
|
||||||
// Accept Gradle ToS when project property org.elasticsearch.acceptScanTOS=true or this is an Elastic CI build
|
// Accept Gradle ToS when project property org.elasticsearch.acceptScanTOS=true or this is an Elastic CI build
|
||||||
if (jenkinsUrl?.host?.endsWith('elastic.co') || Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
|
if (jenkinsUrl?.host?.endsWith('elastic.co') || Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
|
||||||
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
|
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user