Zha*_* Yi 6 windows bash jenkins
我在windows10 pro上安装了jenkins服务器,并在系统上安装了ubuntu bash.我创建了一个Executable windows batch command并将命令放在bash -c ls那里.执行此作业时,我得到以下错误:
c:\jenkins\workspaces>bash -c ls
'bash' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
它说这bash不被认为是内部或外部命令.然后我尝试使用绝对路径但仍然不起作用.错误如下所示:
c:\jenkins\workspaces>C:\Windows\System32\bash.exe -c ls
'C:\Windows\System32\bash.exe' is not recognized as an internal or external command,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
我可以在Windows上手动运行该命令.如何在jenkins上配置?我需要从windows normal命令窗口运行build命令,在我的构建脚本中,它需要在bash中启动一个进程.
| 归档时间: |
|
| 查看次数: |
1142 次 |
| 最近记录: |