Browse Source

Tag the build scan with the JDK that was used

Closes gh-19615
pull/19618/head
Andy Wilkinson 6 years ago
parent
commit
8a28e9bfa6
  1. 5
      gradle/build-scan-user-data.gradle

5
gradle/build-scan-user-data.gradle

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
tagOs()
tagJdk()
tagIde()
tagCiOrLocal()
addGitMetadata()
@ -7,6 +8,10 @@ void tagOs() { @@ -7,6 +8,10 @@ void tagOs() {
gradleEnterprise.buildScan.tag System.getProperty('os.name')
}
void tagJdk() {
gradleEnterprise.buildScan.tag "JDK-${System.getProperty('java.specification.version')}"
}
void tagIde() {
if (System.getProperty('idea.version')) {
gradleEnterprise.buildScan.tag 'IntelliJ IDEA'

Loading…
Cancel
Save