Skip to content

Commit

Permalink
IGNITE-17965: Enable remote build cache for Gradle build on CI. (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pochatkin authored and lowka committed Apr 19, 2023
1 parent 493ee72 commit 680251f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
org.gradle.configureondemand=true
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8
org.gradle.caching=true
19 changes: 19 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,22 @@ project(":ignite-replicator").projectDir = file('modules/replicator')
project(":packaging-cli").projectDir = file('packaging/cli')
project(":packaging-db").projectDir = file('packaging/db')
project(":packaging").projectDir = file('packaging')

ext.isCiServer = System.getenv().containsKey("IGNITE_CI")

buildCache {
local {
enabled = !isCiServer
push = !isCiServer
}
remote(HttpBuildCache) {
enabled = isCiServer
push = isCiServer
url = System.getenv()["GRADLE_BUILD_CACHE_URI"] + "/cache/"
allowInsecureProtocol = true
credentials {
username = System.getenv()["GRADLE_BUILD_CACHE_USERNAME"]
password = System.getenv()["GRADLE_BUILD_CACHE_PASSWORD"]
}
}
}

0 comments on commit 680251f

Please sign in to comment.