hibernate-orm/gradle/gradle-enterprise.gradle
Steve Ebersole 2967f6b40b HHH-14634 : Gradle Enterprise
- temporarily move `publishAlways` to just CI runs until Gradle can clarify how to use that when users are not authenticated; I was originally told that `publishAlways` would simply skip publishing if credentials are not present, but that is clearly not the case
2021-06-11 10:20:34 -05:00

36 lines
1.1 KiB
Groovy

/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Applies details for `https://ge.hibernate.org`
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
tag "JOB ${System.getenv('JOB_NAME')}"
}
tag "JDK ${JavaVersion.current().toString()}"
value 'database', rootProject.hasProperty( 'db' ) ? rootProject.properties.db : 'h2'
}
}