Change Windows shell in Jenkins (from Cygwin to Git Bash/msys)
问题 I have a Windows 7 and a Windows Server 2012 slave with the Jenkins agent and Cygwin already set up. I want to avoid Cygwin and just use the Git Bash shell that comes with Git for Windows (I think it's called msysgit). So I renamed C:\cygwin64 to C:\cygwin64.bak , removed C:\cygwin64\bin from the path, and rebooted. The Windows 2012 box now works fine, (Unix) shell scripts run, $OSTYPE = msys , and uname = MSYS_NT-6.3 (indicating that the Git Bash shell is running). The Windows 7 box won't