Hello Mohit, One option is to update the GoCD agent container image to include the local maven repository.
Another is to do what Ketan suggested and create a persistent volume that holds the local maven repo and gets mounted by the container at startup. The specifics on how to do either of these will depend on your specific container implementation. Regards, Jason On Wednesday, 25 March 2020 10:35:23 UTC-4, Mohit Garg wrote: > > Hi Ketan, > > Thanks for your quick response. I agree with your approach but problem is > that our GoCD agents created on the flyway as per demand. As soon as job > completed, container get killed and agent goes on stand by. > > Can you please suggest how can we solve this issue? > > On Wednesday, March 25, 2020 at 4:58:26 PM UTC+5:30, Ketan Padegaonkar > wrote: >> >> I've seen folks volume mounting the local maven/gradle repository in >> `~/.m2` or `~/.gradle` to get around this problem. >> >> - Ketan >> >> >> >> On Wed, Mar 25, 2020 at 3:37 PM 'Mohit Garg' via go-cd < >> [email protected]> wrote: >> >>> Hi GoCD Community, >>> >>> I am looking for some effective solution to fasten up our maven builds. >>> Each time a maven build is triggered, it downloads all dependencies present >>> in pom.xml which is taking too much time. Can someone please help me with >>> this? >>> >>> Regards, >>> Mohit >>> >>> This message and its attachments are confidential (or legally >>> privileged) information and are meant solely for the addressee of such >>> message. Any unauthorized use of the message / its attachments is strictly >>> prohibited. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "go-cd" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/go-cd/89763f47-21d1-4ba5-8796-141dba882a81%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/go-cd/89763f47-21d1-4ba5-8796-141dba882a81%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- You received this message because you are subscribed to the Google Groups "go-cd" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/ae1d8a6f-d0e3-443a-a821-7332aef5fde1%40googlegroups.com.
