Skip to content

Commit 17ba653

Browse files
authored
Tag Develocity build scans published from nightly builds (#23785)
[skip ci] Worked out with @hamzaremmal at Scala Days!
2 parents 1c79148 + 51207b8 commit 17ba653

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

project/Build.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,13 @@ object Build {
293293
config
294294
.withProjectId(ProjectId("scala3"))
295295
.withServer(config.server.withUrl(Some(url("https://develocity.scala-lang.org"))))
296-
.withBuildScan(
297-
buildScan
296+
.withBuildScan({
297+
val scan = buildScan
298298
.withPublishing(Publishing.onlyIf(_.authenticated))
299299
.withBackgroundUpload(!isInsideCI)
300300
.withObfuscation(buildScan.obfuscation.withIpAddresses(_.map(_ => "0.0.0.0")))
301-
)
301+
if (isNightly) scan.withTag("NIGHTLY") else scan
302+
})
302303
.withBuildCache(
303304
buildCache
304305
.withLocal(buildCache.local.withEnabled(true).withStoreEnabled(true))

0 commit comments

Comments
 (0)