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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -