This plugin allows you to call shell commands using the right shell depending on the executing OS.
'org.jvnet.hudson.plugins:xshell:0.2'
<dependency>
<groupId>org.jvnet.hudson.plugins</groupId>
<artifactId>xshell</artifactId>
<version>0.2</version>
</dependency>
<dependency org="org.jvnet.hudson.plugins" name="xshell" rev="0.2"/>
"org.jvnet.hudson.plugins", "xshell", "0.2"