For a list of other such plugins, see the Pipeline Steps Reference page.
returnStdout, applies to the return value of this step; otherwise, or always for standard error, controls how text is copied to the build log. If unspecified, uses the system default encoding of the node on which the step is run. If there is any expectation that process output might include non-ASCII characters, it is best to specify the encoding explicitly. For example, if you have specific knowledge that a given process is going to be producing UTF-8 yet will be running on a node with a different system encoding (typically Windows, since every Linux distribution has defaulted to UTF-8 for a long time), you can ensure correct output by specifying:
String, rather than being printed to the build log. (Standard error, if any, will still be printed to the log.) You will often want to call
.trim()on the result to strip off a trailing newline.