From 51207b89e61ae78c4ea96fb55fbf4a543e3603f6 Mon Sep 17 00:00:00 2001 From: Mirco Dotta Date: Wed, 20 Aug 2025 09:45:33 +0200 Subject: [PATCH] Tag Develocity build scans published from nightly builds --- project/Build.scala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index f910094e2a04..f7ab11833574 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -293,12 +293,13 @@ object Build { config .withProjectId(ProjectId("scala3")) .withServer(config.server.withUrl(Some(url("https://develocity.scala-lang.org")))) - .withBuildScan( - buildScan + .withBuildScan({ + val scan = buildScan .withPublishing(Publishing.onlyIf(_.authenticated)) .withBackgroundUpload(!isInsideCI) .withObfuscation(buildScan.obfuscation.withIpAddresses(_.map(_ => "0.0.0.0"))) - ) + if (isNightly) scan.withTag("NIGHTLY") else scan + }) .withBuildCache( buildCache .withLocal(buildCache.local.withEnabled(true).withStoreEnabled(true))