Created
May 13, 2022 08:45
-
-
Save thomaschaplin/ad3d2a8ab44c350de0ad46482c2b7b73 to your computer and use it in GitHub Desktop.
How to run commands on Jenkins master via script console
This file contains hidden or 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 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