Only attempt to publish a build scan when we can authenticate

pull/19789/head
Andy Wilkinson 5 years ago
parent 9d5975bd09
commit f06af5a79b

@ -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,8 @@ 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) publishAlways()
publishIfAuthenticated()
server = 'https://ge.spring.io' server = 'https://ge.spring.io'
} }
} }

Loading…
Cancel
Save