From 8d6ead223fab81b6b0453cd6845897c222f1c29a Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 15 Jan 2020 20:14:41 +0000 Subject: [PATCH] Publish a build scan only when authenticated --- ci/tasks/build-pr-project.yml | 1 - ci/tasks/build-project-windows.yml | 1 - ci/tasks/build-project.yml | 1 - settings.gradle | 4 ++-- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ci/tasks/build-pr-project.yml b/ci/tasks/build-pr-project.yml index c3dbfc8c05..29c61ee612 100644 --- a/ci/tasks/build-pr-project.yml +++ b/ci/tasks/build-pr-project.yml @@ -9,6 +9,5 @@ caches: - path: gradle params: CI: true - GRADLE_ENTERPRISE_URL: https://ge.spring.io run: path: git-repo/ci/scripts/build-project.sh diff --git a/ci/tasks/build-project-windows.yml b/ci/tasks/build-project-windows.yml index d3e54cf74d..bd552d1c40 100644 --- a/ci/tasks/build-project-windows.yml +++ b/ci/tasks/build-project-windows.yml @@ -7,6 +7,5 @@ params: GRADLE_ENTERPRISE_ACCESS_KEY: GRADLE_ENTERPRISE_CACHE_USERNAME: GRADLE_ENTERPRISE_CACHE_PASSWORD: - GRADLE_ENTERPRISE_URL: https://ge.spring.io run: path: git-repo/ci/scripts/build-project-windows.bat diff --git a/ci/tasks/build-project.yml b/ci/tasks/build-project.yml index 26fdfb50b0..4bd903cf69 100644 --- a/ci/tasks/build-project.yml +++ b/ci/tasks/build-project.yml @@ -13,7 +13,6 @@ params: GRADLE_ENTERPRISE_ACCESS_KEY: GRADLE_ENTERPRISE_CACHE_USERNAME: GRADLE_ENTERPRISE_CACHE_PASSWORD: - GRADLE_ENTERPRISE_URL: https://ge.spring.io run: path: bash args: diff --git a/settings.gradle b/settings.gradle index 84838efc30..7817db7cbe 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,7 +17,7 @@ pluginManagement { } plugins { - id 'com.gradle.enterprise' version '3.1' + id 'com.gradle.enterprise' version '3.1.1' } apply from: "$rootDir/gradle/build-scan-user-data.gradle" @@ -27,7 +27,7 @@ gradleEnterprise { obfuscation { ipAddresses { addresses -> addresses.collect { address -> '0.0.0.0'} } } - publishAlwaysIf(System.getenv('GRADLE_ENTERPRISE_URL') != null) + publishIfAuthenticated() server = 'https://ge.spring.io' } }