Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save thomaschaplin/ad3d2a8ab44c350de0ad46482c2b7b73 to your computer and use it in GitHub Desktop.

Select an option

Save thomaschaplin/ad3d2a8ab44c350de0ad46482c2b7b73 to your computer and use it in GitHub Desktop.
How to run commands on Jenkins master via script console
def sout = new StringBuilder(), serr = new StringBuilder()
def proc = "git config --list".execute()
proc.consumeProcessOutput(sout, serr)
proc.waitForOrKill(30000)
println "out> $sout\nerr> $serr"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment