Re: Does the Declarative Pipeline Plugin Assume /bin/sh for Shell Command Step (sh) when Running on Agent Node?

2018-09-27 Thread Andrew Bayer
It uses the default shell, yes - i.e., "sh -c ...", as you can see at https://github.com/jenkinsci/durable-task-plugin/blob/c1ee6607c6939e8917762419c8474fecec06172c/src/main/java/org/jenkinsci/plugins/durabletask/BourneShellScript.java#L141-L165. The actual content of the step, i.e., "ls -la" in

Does the Declarative Pipeline Plugin Assume /bin/sh for Shell Command Step (sh) when Running on Agent Node?

2018-09-26 Thread Meg Watson
Hi there, I have a Jenkins Master on RHEL (v 2.121.3), and an Agent running on NonStop, which looks and smells like Unix. On NonStop I have 2 choices for the shell, /bin/sh (which is symlinked to /bin/ksh) and /bin/bash. I normally use /bin/bash. I have a pipeline job that is pegged to run