Skip to content

Commit

Permalink
Migrate to Develocity build cache connector (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl authored Feb 23, 2024
1 parent 827fb8d commit 587436e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gradleEnterprise {
buildScan {
publishAlwaysIf(System.getenv('CI') == 'true')
publishIfAuthenticated()
uploadInBackground = System.getenv('CI') == null
uploadInBackground = System.getenv("CI") == null
capture {
taskInputFiles = true
}
Expand All @@ -17,14 +17,10 @@ gradleEnterprise {

buildCache {
local { enabled = System.getenv('CI') != 'true' }
remote(HttpBuildCache) {
push = System.getenv('CI') == 'true'
remote(gradleEnterprise.buildCache) {
def isAuthenticated = System.getenv('GRADLE_ENTERPRISE_ACCESS_KEY')
push = System.getenv('CI') == 'true' && isAuthenticated
enabled = true
url = 'https://ge.grails.org/cache/'
credentials {
username = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER')
password = System.getenv('GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY')
}
}
}

Expand Down

0 comments on commit 587436e

Please sign in to comment.