Jenkins EC2 plugin: Use Instance-ID of slave instead if AMI-ID

99 views
Skip to first unread message

Tisch

unread,
Jul 16, 2012, 3:09:44 AM7/16/12
to jenkins...@googlegroups.com
Hi all,

I have been looking at the jenkins ec2 plugin for jenkins. I've read the
documentation for the plugin on the plugin page. I can't find a way to set an instance-ID
(i-88e6xxx) instead of an AMI-ID to start slaves. I've seen the option to stop a slave instead of terminating it. So I'm searching for a way to start that stopped slave up again instead of launching another AMI.

This would save the state of the last compilation on the slave and would
therefore save CMS pulling times and eventually compilation times.

So I was wondering if one could provide an instance-ID instead of an AMI-ID to launch
for the ec2 plugin.

Thanks,

Stefan

Tisch

unread,
Aug 3, 2012, 10:11:55 AM8/3/12
to jenkins...@googlegroups.com
bump.

R. Tyler Croy

unread,
Aug 3, 2012, 4:16:08 PM8/3/12
to jenkins...@googlegroups.com
I'm not sure if what you want is possible, or even a good idea. The benefit of
the plugin spinning up a machine from an AMI is that you then have a clean
host, using a running instance would add extra complexity IMO.


- R. Tyler Croy
--------------------------------------
Code: http://github.com/rtyler
Chatter: http://twitter.com/agentdero
rty...@jabber.org
signature.asc

Stefan Dänzer

unread,
Aug 4, 2012, 8:28:13 AM8/4/12
to jenkins...@googlegroups.com

Thanks for your reply. I understand your concern about not having a clean host for the build process. However there are a couple of arguments for me using an instance instead of an ami:
- firing up a new ami is quite more time consuming then booting an already existing instance.
- when having large repositories, pull times of  repositories can be time consuming when initial pull is performed.

Stefan

sent from mobile.

Sami Tikka

unread,
Aug 4, 2012, 12:41:08 PM8/4/12
to jenkins...@googlegroups.com
You could mount a disk which contains a fairly uptodate clone of your repo, and when you clone, pass this local disk as --reference repo. Works with git, I don't know about other version control tools. 

-- Sami

bleras00

unread,
Nov 29, 2016, 12:17:23 PM11/29/16
to Jenkins Users
Have you tried with aws cli console?

I guess you could install it on the jenkins instance and execute the command line to remotely start an existant instance

Regards,



El dilluns, 16 juliol de 2012 9:09:44 UTC+2, Tisch va escriure:
Reply all
Reply to author
Forward
0 new messages