You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.
It seems that caching doesn't work outside of the working directory (/drone/src) as that is the directory that drone retains across steps (correct me if I'm wrong). I'm trying to cache .m2 directory. Here's some additional information.
These mount directories don't work:
/root/.m2/repository
../../root/.m2/repository
This work, but I have to let maven know:
.m2/repository
I either have to use maven like so mvn -Dmaven.repo.local=.m2/repository ... or set environment variable MAVEN_OPTS=-Dmaven.repo.local=.m2/repository
So for gradle, or other programs, you have to check and see if there's a way to specify a custom directory. I hope this plugin could support caching outside of the /drone/src directory.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
can't cache gradle dependencies.
I mount host directory
/tmp/cache/gradle
as cache.I checked that it's exact gradle depedencies directory.

but rebuilding cache failed

To Reproduce
Steps to reproduce the behavior:
Specifications
The text was updated successfully, but these errors were encountered: