Jenkins GroovyScript不';在詹金斯大师身上不能正常工作
我正在运行下面的Groovy脚本,它在编译器&Jenkins(如果它运行的是从/节点)中运行得非常好 因为我想运行脚本“这个项目是参数化的”,我注意到Jenkins总是在运行 我使用以下脚本:Jenkins GroovyScript不';在詹金斯大师身上不能正常工作,jenkins,groovy,jenkins-scriptler,Jenkins,Groovy,Jenkins Scriptler,我正在运行下面的Groovy脚本,它在编译器&Jenkins(如果它运行的是从/节点)中运行得非常好 因为我想运行脚本“这个项目是参数化的”,我注意到Jenkins总是在运行 我使用以下脚本: // setup SSH connection: sshString = "ssh -T -i keyfile -p 22 test@server.com " cmdLine = "/appl/test/script.sh" conString = sshString + cmdLine // exec
// 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)
在从机上,我得到shell脚本的结果,在主机上,结果为NULL
我做错了什么可能想澄清你的问题。措辞令人困惑。可能需要澄清您的问题。措辞令人困惑。