Skip to content

Instantly share code, notes, and snippets.

@karlapsite
Created February 5, 2015 21:39
Show Gist options
  • Save karlapsite/84b28579bcdc44959abb to your computer and use it in GitHub Desktop.
Save karlapsite/84b28579bcdc44959abb to your computer and use it in GitHub Desktop.
def proc = """git clone https://github.com/karlapsite/helloworld /jenkins1/workspace/Build_and_SSH""".execute()
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