Always generate a build scan when run on CI
Helps with identifying test failures and inspecting stack traces.
@@ -4,6 +4,7 @@ import java.util.Date
plugins {
groovy
`java-gradle-plugin`
+ `build-scan`
id("com.bmuschko.gradle.docker.test-setup")
id("com.bmuschko.gradle.docker.integration-test")
id("com.bmuschko.gradle.docker.functional-test")
@@ -42,3 +43,13 @@ tasks.named<Jar>("jar") {
attributes["Built-Gradle"] = gradle.gradleVersion
}
}
+
+buildScan {
+ termsOfServiceUrl = "https://gradle.com/terms-of-service"
+ termsOfServiceAgree = "yes"
+
+ if (!System.getenv("CI").isNullOrEmpty()) {
+ publishAlways()
+ tag("CI")
+ }
+}
\ No newline at end of file
