Commit 8d6ead22 authored by Andy Wilkinson's avatar Andy Wilkinson

Publish a build scan only when authenticated

parent 13130cc3
...@@ -9,6 +9,5 @@ caches: ...@@ -9,6 +9,5 @@ caches:
- path: gradle - path: gradle
params: params:
CI: true CI: true
GRADLE_ENTERPRISE_URL: https://ge.spring.io
run: run:
path: git-repo/ci/scripts/build-project.sh path: git-repo/ci/scripts/build-project.sh
...@@ -7,6 +7,5 @@ params: ...@@ -7,6 +7,5 @@ params:
GRADLE_ENTERPRISE_ACCESS_KEY: GRADLE_ENTERPRISE_ACCESS_KEY:
GRADLE_ENTERPRISE_CACHE_USERNAME: GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD: GRADLE_ENTERPRISE_CACHE_PASSWORD:
GRADLE_ENTERPRISE_URL: https://ge.spring.io
run: run:
path: git-repo/ci/scripts/build-project-windows.bat path: git-repo/ci/scripts/build-project-windows.bat
...@@ -13,7 +13,6 @@ params: ...@@ -13,7 +13,6 @@ params:
GRADLE_ENTERPRISE_ACCESS_KEY: GRADLE_ENTERPRISE_ACCESS_KEY:
GRADLE_ENTERPRISE_CACHE_USERNAME: GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD: GRADLE_ENTERPRISE_CACHE_PASSWORD:
GRADLE_ENTERPRISE_URL: https://ge.spring.io
run: run:
path: bash path: bash
args: args:
......
...@@ -17,7 +17,7 @@ pluginManagement { ...@@ -17,7 +17,7 @@ pluginManagement {
} }
plugins { 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" apply from: "$rootDir/gradle/build-scan-user-data.gradle"
...@@ -27,7 +27,7 @@ gradleEnterprise { ...@@ -27,7 +27,7 @@ gradleEnterprise {
obfuscation { obfuscation {
ipAddresses { addresses -> addresses.collect { address -> '0.0.0.0'} } ipAddresses { addresses -> addresses.collect { address -> '0.0.0.0'} }
} }
publishAlwaysIf(System.getenv('GRADLE_ENTERPRISE_URL') != null) publishIfAuthenticated()
server = 'https://ge.spring.io' server = 'https://ge.spring.io'
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment