Browse Source

Only attempt to publish a build scan when we can authenticate

pull/19789/head
Andy Wilkinson 6 years ago
parent
commit
f06af5a79b
  1. 5
      settings.gradle

5
settings.gradle

@ -17,7 +17,7 @@ pluginManagement { @@ -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 { @@ -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'
}
}

Loading…
Cancel
Save