HHH-14634 : Gradle Enterprise

- re-enable `publishAlways` in addition to `publishIfAuthenticated`
This commit is contained in:
Steve Ebersole 2021-06-11 11:28:09 -05:00
parent 2967f6b40b
commit f618b47db4
1 changed files with 6 additions and 13 deletions

View File

@ -13,23 +13,16 @@ gradleEnterprise {
server = 'https://ge.hibernate.org' server = 'https://ge.hibernate.org'
buildScan { buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
captureTaskInputFiles = true captureTaskInputFiles = true
// publishAlways() publishAlways()
publishIfAuthenticated()
if ( System.getenv("CI") == null && System.getProperty("CI") == null ) { def isCi = System.getenv("CI") != null || System.getProperty("CI") != null
// not a CI job.. uploadInBackground = !isCi
uploadInBackground = true
} if ( isCi ) {
else {
// is CI job
publishAlways()
uploadInBackground = false
tag "JOB ${System.getenv('JOB_NAME')}" tag "JOB ${System.getenv('JOB_NAME')}"
} }
tag "JDK ${JavaVersion.current().toString()}" tag "JDK ${JavaVersion.current().toString()}"
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2' value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
} }