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'
buildScan {
termsOfServiceUrl = 'https://gradle.com/terms-of-service'
termsOfServiceAgree = 'yes'
captureTaskInputFiles = true
// publishAlways()
if ( System.getenv("CI") == null && System.getProperty("CI") == null ) {
// not a CI job..
uploadInBackground = true
}
else {
// is CI job
publishAlways()
uploadInBackground = false
publishIfAuthenticated()
def isCi = System.getenv("CI") != null || System.getProperty("CI") != null
uploadInBackground = !isCi
if ( isCi ) {
tag "JOB ${System.getenv('JOB_NAME')}"
}
tag "JDK ${JavaVersion.current().toString()}"
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
}