HHH-14634 : Gradle Enterprise

- added JDK version as tag
- added job-name (for CI) as tag
This commit is contained in:
Steve Ebersole 2021-05-26 12:36:59 -05:00
parent 1238e5261d
commit cbeedd1c32
1 changed files with 11 additions and 2 deletions

View File

@ -17,10 +17,19 @@ gradleEnterprise {
termsOfServiceAgree = 'yes' termsOfServiceAgree = 'yes'
captureTaskInputFiles = true captureTaskInputFiles = true
publishAlways() publishAlways()
uploadInBackground = System.getenv("CI") == null && System.getProperty("CI") == null
if ( System.getenv("CI") == null && System.getProperty("CI") == null ) {
// not a CI job..
uploadInBackground = true
}
else {
// is CI job
uploadInBackground = false
tag "JOB ${System.getenv('JOB_NAME')}"
}
tag "JDK ${JavaVersion.current().toString()}"
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2' value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
} }
} }