Skip to content

Commit 9dbb6bb

Browse files
committed
Publish build scans conditionally
1 parent aa113ff commit 9dbb6bb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

settings.gradle

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,12 @@ if (System.env['CI'] != null) {
6060
}
6161

6262
gradleEnterprise {
63-
buildScan {
64-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
65-
termsOfServiceAgree = "yes"
66-
publishAlways()
63+
if (System.env['CI'] != null) {
64+
buildScan {
65+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
66+
termsOfServiceAgree = "yes"
67+
publishAlways()
68+
}
6769
}
6870
}
6971

0 commit comments

Comments
 (0)