groovy - GroovyScript doesn't work correct on Jenkins Master -


i running following groovy script works perfect compiler & jenkins ( if runs slave /node)

because want run script "this project parameterised" noticed jenkins running.

i use following script:

// setup ssh connection: sshstring = "ssh -t -i keyfile -p 22 test@server.com " cmdline = "/appl/test/script.sh" constring = sshstring + cmdline  // execute command  def proc            = constring.execute() def outputstream    = new stringbuffer()  proc.waitforprocessoutput(outputstream, system.out)  output =  (outputstream .tostring())  println(output) 

on slave result of shell script, on master result null.

what doing wrong


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -