Hi, Is it possible to do bash command under a windows agent?
Instead of run a powershell, run a sh or bash
ECPEXE="cmd /c powershell.exe"
ECPEXE="cmd /c bash.exe" ECPEXE="cmd /c sh.exe"
Optimum Informatique inc.
Téléphone: (514) 288-1661 x :634
Télécopieur: (514) 288-8152
There's several native ports of bash for Windows, e.g. http://win-bash.sourceforge.net. If and how they interface with the Windows file system, I don't know.
There is a Linux subsystem on Windows 10 and Windows 10-style servers.
And there's cygwin.
I doubt anything but a native port is worth the effort to set it up if it's just about running one shell script.
Also, please note the first option is strictly bash. It does not include grep, awk or whatever else your shell script may (or may not) call, though there are native ports of most GNU utils, too.
I have not executed bash scripts on windows servers. We do however use PuTTY from a windows agent to execute bash scripts on remote unix servers.
What about using the Bash for windows as external interpreter?
I assume you are using any bash-port forwindows.