Groovy shell command
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
def command = "git --version" | |
def proc = command.execute() | |
proc.waitFor() | |
println "Process exit code: ${proc.exitValue()}" | |
println "Std Err: ${proc.err.text}" | |
println "Std Out: ${proc.in.text}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
with git working dir:
or with system environment