Commit ce7f501c authored by Andy Wilkinson's avatar Andy Wilkinson

Revert "Publish a build scan only when authenticated"

publishIfAuthenticated() does not appear to work as intended as it
disables publishing even when authenticated.
parent 8d6ead22
......@@ -9,5 +9,6 @@ caches:
- path: gradle
params:
CI: true
GRADLE_ENTERPRISE_URL: https://ge.spring.io
run:
path: git-repo/ci/scripts/build-project.sh
......@@ -7,5 +7,6 @@ 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
......@@ -13,6 +13,7 @@ params:
GRADLE_ENTERPRISE_ACCESS_KEY:
GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD:
GRADLE_ENTERPRISE_URL: https://ge.spring.io
run:
path: bash
args:
......
......@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gradle.enterprise' version '3.1.1'
id 'com.gradle.enterprise' version '3.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'} }
}
publishIfAuthenticated()
publishAlwaysIf(System.getenv('GRADLE_ENTERPRISE_URL') != null)
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