Problem
I want to set cygwin as my default shell for all Steps that run on my Windows Agents.
Solution
First, ensure that the cygwin bin directory is in the path for the agent.
Set the Windows environment variable CYGWIN to have value "nodosfilewarning" for agent. Then restart the agent.
Now edit the resource on the Cloud page, and set the default shell to:
sh -e "{0}.cmd"
That will set the resource to have Cygwin as its default shell.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.