viagra coût en france 
viagra pfizer achat 
viagra bruxelles 
cialise medicament 
cialis generique 10 
commande cialis generique 
achat cialis belgique 
forum viagra 
viagra vrai 
cialis generique canada 
achat viagra 20mg 
acheter cialis sans ordonnance 
prix du viagra 50 mg 
cialis remboursement secu 
tadalafil foro viagra uden recept comprare bviagra viagra on line viagra non générique kamagra acquista online compra viagra in italia precio cialis 5 mg kamagra oral jelly bestellen kamagra venta en españa billig levitra levitra quanto costa kamagra gel farmacia svizzera acheter cialis pas cher en ligne viagra pil bestellen

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


. 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.