Skip to content

Instantly share code, notes, and snippets.

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