Need Help To Run Maven Builds Faster Setup on GoCD Kubernetes

18 views
Skip to first unread message

Mohit Garg

unread,
Mar 25, 2020, 6:07:19 AM3/25/20
to go-cd
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

Ketan Padegaonkar

unread,
Mar 25, 2020, 7:28:26 AM3/25/20
to go...@googlegroups.com
I've seen folks volume mounting the local maven/gradle repository in `~/.m2` or `~/.gradle` to get around this problem.

- Ketan



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 go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/89763f47-21d1-4ba5-8796-141dba882a81%40googlegroups.com.

Mohit Garg

unread,
Mar 25, 2020, 10:35:23 AM3/25/20
to go-cd
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 <go...@googlegroups.com> 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 go...@googlegroups.com.

Jason Smyth

unread,
Mar 25, 2020, 3:00:08 PM3/25/20
to go-cd
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
Reply all
Reply to author
Forward
0 new messages