Jenkins:如何在Windows从站中执行Shell脚本 [英] Jenkins: How to execute shell script in a Windows slave
本文介绍了Jenkins:如何在Windows从站中执行Shell脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Windows从属服务器,安装了bash.我正在尝试在其上运行Shell脚本作为预构建步骤.关于如何执行此操作的任何想法?
I have a Windows slave, with bash installed. I'm trying to run a shell script on it as a pre-build step. Any ideas on how I can do this?
推荐答案
您需要使用脚本作为参数运行bash:
You need to run bash with the script as an argument:
bash yourscript <arguments to your script here>
根据您的环境,您可能还需要提供完整的bash路径.
You may also need to supply the complete path to bash depending on your environment.
这篇关于Jenkins:如何在Windows从站中执行Shell脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文