Skip to content

Instantly share code, notes, and snippets.

@cvakiitho
Created November 9, 2021 15:30
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 cvakiitho/956c69ff83e3b034f552d9e9b9db9128 to your computer and use it in GitHub Desktop.
Save cvakiitho/956c69ff83e3b034f552d9e9b9db9128 to your computer and use it in GitHub Desktop.
jenkins run sh via script console
println new ProcessBuilder( 'sh', '-c', 'date').redirectErrorStream(true).start().text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment