I do a test for our gradle remote cache server.
1.my cache setting is:
buildCache {
local {
enabled = false //i only want to test remote cache
}
remote(HttpBuildCache) {
enabled = true
push = true
allowUntrustedServer = true
url = 'https://path/to/our/cache/server'
}
}
2.what i have try:
2.1 the cache server is normal, i try to connect to server with ping command, the result is ok.
2.2 i test single task cache hit result ,with sequence build, also with “–scan” flag
i find the task cache key is same ,but twice build all get cache miss, and all upload the same cache key to remote server , so now ,i cannot figure out why cannot pull the cache key from the remote cache server without any code modification?