mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Publish a build scan only when authenticated
This commit is contained in:
parent
13130cc37d
commit
8d6ead223f
@ -9,6 +9,5 @@ caches:
|
||||
- path: gradle
|
||||
params:
|
||||
CI: true
|
||||
GRADLE_ENTERPRISE_URL: https://ge.spring.io
|
||||
run:
|
||||
path: git-repo/ci/scripts/build-project.sh
|
||||
|
@ -7,6 +7,5 @@ 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,7 +13,6 @@ 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'
|
||||
id 'com.gradle.enterprise' version '3.1.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'} }
|
||||
}
|
||||
publishAlwaysIf(System.getenv('GRADLE_ENTERPRISE_URL') != null)
|
||||
publishIfAuthenticated()
|
||||
server = 'https://ge.spring.io'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user