Implement caching in Jenkins CI #19405
Replies: 1 comment 1 reply
-
Nevermind, I was able to quickly setup remote caching |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have read pant's github
init-pants
action here, https://github.com/pantsbuild/actions/blob/main/init-pants/action.yamlIt uses
cache
action for caching.Can someone share some guidance/reference on implementing similar caching logic in Jenkins ? Essentially i am strugging with how to best implement caching against static keys.
So far, I mounted a nfs disk on my jenkins agent and mapped
$HOME/.cache/pants/named_caches
$HOME/.cache/pants/setup
$HOME/.cache/nce
to NFS. This way i was able to persist them across runs, but obviously there is no cache invalidation logic. Neither will it work when multiple pants pipeline run in parallel and try to reuse same NFS file location.Today i ran into some very interesting error:
Any recommendations on how to proceed ?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions