Created
August 24, 2022 13:56
-
-
Save thomaschaplin/b06fd3d0df5d3d790c7baafc3713ff28 to your computer and use it in GitHub Desktop.
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 = "ls /var/jenkins_home/jobs".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