Maven repository on EC2 slave nodes

47 views
Skip to first unread message

Basil Brunner

unread,
Jul 9, 2015, 3:30:47 AM7/9/15
to jenkins...@googlegroups.com
Hi all,

I’ve successfully installed Jenkins on a host running in AWS EC2. We’re also using the
Amazon EC2 plugin [1] to start slaves, which is working fine as well.

To save costs, I’ve configured the slaves to terminate after being idle for 5 minutes.
If we start the next build job, a new, clean EC2 instance gets started.

Since the slaves are now most of the time in a clean state, we also don’t have a pre-filled
local Maven repository which means that each and every dependency is loaded from remote
repositories, which takes quite some time.

What is best practice with regards to Maven repositories? Does it make sense to always
fetch from a remote repo? Is there some kind of “shared” Maven repo I could use? Any
other suggestions how to deal with that situation?


Thank you very much for your feedback!

-- Basil

[1] http://wiki.jenkins-ci.org/display/JENKINS/Amazon+EC2+Plugin

signature.asc

Oleg Nenashev

unread,
Jul 13, 2015, 4:53:49 PM7/13/15
to jenkins...@googlegroups.com
I would recommend to deploy a shared storage on EC2 and map it to your nodes when you create them.
Fresh Maven repos checkout will decrease the build speed and also cause a huge traffic, so additional storage expenses seem to be reasonable

четверг, 9 июля 2015 г., 10:30:47 UTC+3 пользователь Basil Brunner написал:
Reply all
Reply to author
Forward
0 new messages