SyntaxFix
Write A Post
Hire A Developer
Questions
According to this document, you should be able to do it like so:
node { sh "#!/bin/bash \n" + "echo \"Hello from \$SHELL\"" }