buildkite / buildkite/maven-example
How to cache M2 dependencies between agents?
- Dominant language
- Java
- Stars
- 6
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Hi there,
I'm trying to get the .m2/repository to be cached somehow so I don't need to download all the jars every time a new agent comes up. This process is quite lengthy and every morning where the instances gets created we have to wait 30 minutes for the first few builds to succeed.
After that, everything works well as long as the agent does not get killed.
Would it be possible to package the .m2/repository before killing the agents and upload it to S3 for the next morning? Downloading a few GB from S3 is quick, but not so much if download from our artifactory.
Or perhaps we should cache that within the docker image and push it to ECR?
Any suggestion/ideas?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.