Tag the build scan with the JDK that was used

Closes gh-19615
This commit is contained in:
Andy Wilkinson 2020-01-10 17:52:37 +00:00
parent 4b57884535
commit 8a28e9bfa6

View File

@ -1,4 +1,5 @@
tagOs()
tagJdk()
tagIde()
tagCiOrLocal()
addGitMetadata()
@ -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'