MINOR add tags for Gradle build scans (#16923)

This adds three tags for the Gradle build scans: jenkins, github, and local. Adding these tags will allow us to more easily differentiate build scan statistics based on the origin of the build.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
David Arthur 2024-08-19 16:40:21 -04:00 committed by GitHub
parent 3db6e68c4c
commit fd60d2d980
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,13 @@ develocity {
// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
}
if (isJenkins) {
tag "jenkins"
} else if (isGithubActions) {
tag "github"
} else {
tag "local"
}
}
}