cialis generico 10 mg kamagra belgique cialis 10 mg prix cialismg pharmacie belgique cialis commander cialis france generique cialis genericos compra levitra genericos pharmacie en ligne sans ordonnance comprar kamagra en andorra comprar viagra farmacia españa viagra marque priser viagra viagra como comprar viagra bestellen ohne rezept
prix cialis le vrai pas le générique 
levitra demg 
viagra americain 
viagra vente libre france 
prix du medicament cialis 
achat en ligne viagra 
cialis duree d'action 
prix viagra 2007 
viagra pas cher en ligne 
vente de cialis sur le net 
acheter levitra non generique 
acheter kamagra en belgique 
cialis luxembourg 
comparaison viagra levitra 
viagra pour femmes france 
viagra online kamagra otc cialis otc cialis in dubai cialis trial offer ambien maximum dosage viagra low price how much is propecia over the counter kamagra cialis for women cialis no prescription overnight buy cheap levitra no prescription kamagramg oral jelly usa priligy bamazon kamagras gel

Groovy for Hudson console

Hudson continuous integration server has a console which is good for testing scripts and access to commands that your Hudson jobs need.

The hudson console only let’s you run Groovy script. To run commands on the machine, Groovy has the method

“string”.execute()

. So now I can use this snippet to test versions of Ruby, JRuby, etc:

def commands = ["ruby --version", "gem environment", "which ruby", "which gem", "jruby --version"] commands.each{ run(it) } def run(cmd) { //def proc = commands[1].execute() def proc = cmd.execute() proc.waitFor() // Obtain status and output println "return code: ${ proc.exitValue()}" println "stderr: ${proc.err.text}" println "stdout: ${proc.in.text}" // *out* from the external program is *in* for groovy }

Example borrowed from and shrinkwrapped from groovy.codehaus.org/JN1015-Collections

Comments are closed.