Drillster / drone-volume-cache

Drone plugin for caching to a locally mounted volume
MIT License
109 stars 43 forks source link

cache in the directory created by soft-link #24

Closed yizhishang closed 5 years ago

yizhishang commented 5 years ago

my java project is yizhishang/k8s-demo, i want to cache the maven repository during drone, and even i want to share local maven repository to all the project, so i use "ln -s /mnt/MavenRepo /tmp/cache/yizhishang/k8s-demo/". go errors!! image

yizhishang commented 5 years ago

how to cache and share

mjwwit commented 5 years ago

I really don't recommend cache sharing between projects. But if you think you must, here is the way to do it: https://github.com/Drillster/drone-volume-cache/blob/master/DOCS.md#using-the-cache_key-option Basically you configure all projects that share the same cache to use the same cache key.

Let me know if this works for you.

yizhishang commented 5 years ago

in fact, i want all my java projects use one maven repository cache

mjwwit commented 5 years ago

That is entirely possible. You'll have to use the same cache key in all your java projects.

mjwwit commented 5 years ago

I'm assuming this is fixed now, if not you can re-open it.