Currently, we can capture the output of a shell step inside of a {{script{}}} block, but have no way to do that in clean declarative pipeline syntax. For example, [this post on StackOverflow|https://stackoverflow.com/a/38783622] must instead
Currently, we can capture the output of a shell step inside of a {{script{}}} block, but have no way to do that in clean declarative pipeline syntax. For example, [this post on StackOverflow|https://stackoverflow.com/a/38783622] must instead be:
Currently, we can capture the output of a shell step inside of a {{script{}}} block, but have no way to do that in clean declarative pipeline syntax. For example, [this post on StackOverflow|https://stackoverflow.com/a/38783622] must instead be:
There might be an existing issue to track this kind of thing already, but IIUC it is somewhat by design (CC @abayer). In your example at least you could move your echo into the script you run, but perhaps that is not your real use case.
There might be an existing issue to track this kind of thing already, but IIUC it is somewhat by design (CC @ [~abayer]). In your example at least you could move your echo into the script you run, but perhaps that is not your real use case.