Created
April 9, 2014 00:38
-
-
Save andrewkroh/10213678 to your computer and use it in GitHub Desktop.
Create xterm from Jenkins "Script Console"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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