Like many of the commenters on -
- I'd like to be able to capture the exit status and text written to standard out at the same time. JENKINS-26133
My current use case is calling git merge --no-edit $branches and if there was an error sending a slack notification with the output.
The current workaround is:
Which works but isn't a great developer experience... It would be great if I could request an object that contained: status, stdout, and stderr.