Skip to content

Instantly share code, notes, and snippets.

@andrewkroh
Created April 9, 2014 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewkroh/10213678 to your computer and use it in GitHub Desktop.
Save andrewkroh/10213678 to your computer and use it in GitHub Desktop.
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