Browse Source

Add build operating system as build scan tag (#45558)

Mark Vieira 6 years ago
parent
commit
1567c39395
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gradle/build-scan.gradle

+ 3 - 0
gradle/build-scan.gradle

@@ -1,8 +1,11 @@
 import nebula.plugin.info.scm.ScmInfoExtension
+import org.elasticsearch.gradle.OS
 
 buildScan {
     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
     if (jenkinsUrl?.host?.endsWith('elastic.co') || Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
         termsOfServiceUrl = 'https://gradle.com/terms-of-service'