Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Create xterm from Jenkins "Script Console"
// Send xterm to machine from Jenkins:
def myip=''
def proc = "xterm".execute(["DISPLAY=${myip}:0.0"], new File('/home/jenkins'))
println "return code: ${proc.exitValue()}"
println "stderr: ${proc.err.text}"
println "stdout: ${}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment