
9

大佬们,用 k8s+Jenkins 去构建 Android 的话 gradle 缓存怎么搞?
source link: https://www.v2ex.com/t/792778
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

大佬们,用 k8s+Jenkins 去构建 Android 的话 gradle 缓存怎么搞?
mio4kon · 2 小时 32 分钟前 via iPhone · 147 次点击现在是 gradle home 的缓存放在 nfs 服务器上,然后 pod 挂载 gradle 缓存的 pvc,但是多个 pod 并行执行的话会有文件锁直接导致报错。
现在的想法是每次构建前把 nfs 的缓存目录 copy 到 pod 的 gradle home,但是 gradle home 太大了( 15g 左右),本机 cp 都要几分钟,影响构建时间,而且如何更新 gradle home 的内容也很麻烦
大佬们有没有好的解决方案?
现在的想法是每次构建前把 nfs 的缓存目录 copy 到 pod 的 gradle home,但是 gradle home 太大了( 15g 左右),本机 cp 都要几分钟,影响构建时间,而且如何更新 gradle home 的内容也很麻烦
大佬们有没有好的解决方案?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK