From 71e2b6ed13439dcf1d3ea652e53deb670d140504 Mon Sep 17 00:00:00 2001 From: Adrien Piquerez Date: Mon, 19 Aug 2024 15:45:57 +0200 Subject: [PATCH] debug --- .github/workflows/ci.yaml | 3 +++ project/Build.scala | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0ce994b12e65..cde2ceb5724f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -87,6 +87,9 @@ jobs: - name: Add SBT proxy repositories run: cp -vf .github/workflows/repositories /root/.sbt/ ; true + - name: Check Develocity Key + run: echo $DEVELOCITY_ACCESS_KEY | wc -m + - name: Test # DON'T add dist/Universal/stage! # Adding dist/Universal/stage bootstraps the compiler diff --git a/project/Build.scala b/project/Build.scala index db0949c46b50..538eeb11447b 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -275,13 +275,14 @@ object Build { val isInsideCI = insideCI.value val previousConfig = develocityConfiguration.value val previousBuildScan = previousConfig.buildScan + println("DEVELOCITY_ACCESS_KEY: " + sys.env.get("DEVELOCITY_ACCESS_KEY").getOrElse("").size) previousConfig .withProjectId(ProjectId("scala3")) .withServer(previousConfig.server.withUrl(Some(url("https://develocity.scala-lang.org")))) .withBuildScan( previousBuildScan - .withPublishing(Publishing.onlyIf(_.authenticated)) - .withBackgroundUpload(!isInsideCI) + .withPublishing(Publishing.onlyIf(_ => true)) + .withBackgroundUpload(false) .tag(if (isInsideCI) "CI" else "Local") .withLinks(previousBuildScan.links ++ GithubEnv.develocityLinks) .withValues(previousBuildScan.values ++ GithubEnv.develocityValues)