I recall you can accomplish cleaning a slave with one of the cloud plugins -you 
create a new slave on the fly from a template and destroy it after a job.  But 
I don't recall which of the cloudy plugins it was and so will depend on what 
your VM tech is.

The alternative as Andreas suggested is to not have the tests run on the slave 
but on a separate VM and have that controlled by Jenkins.  We do this using the 
CLoudbees paid VMWare autoscaling plugin, but there may now be other free 
plugins that perfrom a similar job.

/James

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Andreas Schilling
Sent: 30 January 2013 10:31
To: jenkinsci-users@googlegroups.com
Subject: Antwort: Installing operating systems on slaves via Jenkins

Hi Manish,

the very simple answer is: you can't do this.
A slave is not sort of "remote controlled" in the sense of performing any 
operation on it you could imagine. Even if you could manage to trigger a OS 
installation on it: how should the Master communicate with it afterwards? You 
would burn the bridge you're standing on.
What I *could* imagine to do is to perform the tests on a VM and to somehow 
trigger the VM host to start from a fresh VM image every time you execute the 
test. But I'm no expert on that sort of stuff in any way so I have no clue 
whether you could trigger that sort of stuff in a headless manner at all.

A very basic question of course must be asked as well: isn't there a flaw in 
your test process if you need a complete fresh OS to run it? Then again, I have 
no idea what you are actually testing so of course there might be good reasons 
to do so.

Kind regards,

Andreas Schilling
CAE Processes & Data Management
-------------------------------------------------------------------
Dipl. Inf. Andreas Schilling
Senior Software Architect

TWT GmbH
Science & Innovation
Bernhäuser Str. 40 - 42
73765 Neuhausen

Tel: +49.7158.17 15.6 73
Mobil: +49.1 72.6 22 88 70
E-Mail: andreas.schill...@twt-gmbh.de<mailto:andreas.schill...@twt-gmbh.de>
--------------------------------------------------------------------
www.twt-gmbh.de
--------------------------------------------------------------------
Geschäftsführung: Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank 
Beutenmüller (Stv.)
Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778
Umsatzsteuer: ID-Nr.: DE147841145
--------------------------------------------------------------------



Von:        Manish Singh <munsi...@gmail.com<mailto:munsi...@gmail.com>>
An:        
jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Datum:        30.01.2013 11:12
Betreff:        Installing operating systems on slaves via Jenkins
Gesendet von:        
jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
________________________________



Hello All,

I have a requirement, where I need to reinstall OS on slave machines before a 
job is executed. This is needed as we need a clean OS before executing the 
tests.

What are the best ways to do this via Jenkins?

-Manish

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to