How to return stdout and stderr together with the status from a Jenkins Pipeline sh script step
13:26 28 Aug 2021

The answers to this question were inspired by @codeGeass' comment to an answer to How to execute a command in a Jenkins 2.0 Pipeline job and then return the stdout:

Can we use them together ? catch returnStdout in a variable and returnStatus in an other ? because it is not cool to repeat the sh script twice

shell jenkins jenkins-pipeline stdout stderr