[英]How to execute shell commands in windows slave machine from Jenkins?
[英]Jenkins: How to execute shell script in a Windows slave
我有一個Windows奴隸,安裝了bash。 我正在嘗試在其上運行shell腳本作為預構建步驟。 有關如何做到這一點的任何想法?
您需要以腳本作為參數運行bash:
bash yourscript <arguments to your script here>
您可能還需要提供bash的完整路徑,具體取決於您的環境。
如果你在Windows上的bash是Cygwin安裝的一部分, cygpath插件將允許你使用'Execute Shell'並在它的頂部做#!/ bin / bash,就像你對unix slave一樣。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.