Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Add even more custom data
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed Mar 21, 2020
1 parent a33e902 commit 3bf9eae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ plugins {

gradleEnterprise {
buildScan {
if(!System.getenv("GITHUB_WORKFLOW").isNullOrEmpty() || file("gradle/.build-scans-tos-agree").exists()) {
val isCi = !System.getenv("GITHUB_WORKFLOW").isNullOrEmpty()
if(isCi || file("gradle/.build-scans-tos-agree").exists()) {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
publishAlways()
tag(System.getProperty("os.name"))
tag(if (isCi) "CI" else "LOCAL")
val repo = System.getenv("GITHUB_REPOSITORY")
val runId = System.getenv("GITHUB_RUN_ID")
if (!repo.isNullOrEmpty() && !runId.isNullOrBlank()) {
link("GitHub Actions run", "https://github.com/$repo/actions/runs/$runId")
}
}
}
}

0 comments on commit 3bf9eae

Please sign in to comment.