Commit f06af5a7 authored by Andy Wilkinson's avatar Andy Wilkinson

Only attempt to publish a build scan when we can authenticate

parent 9d5975bd
......@@ -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,8 @@ gradleEnterprise {
obfuscation {
ipAddresses { addresses -> addresses.collect { address -> '0.0.0.0'} }
}
publishAlwaysIf(System.getenv('GRADLE_ENTERPRISE_URL') != null)
publishAlways()
publishIfAuthenticated()
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