Jenkins:如何在 Windows 从站中执行 shell 脚本

rai*_*n_s 4 shell jenkins

我有一个安装了 bash 的 Windows 从站。我正在尝试在其上运行 shell 脚本作为预构建步骤。关于我如何做到这一点的任何想法?

Wil*_*iam 5

您需要使用脚本作为参数运行 bash:

bash yourscript <arguments to your script here>
Run Code Online (Sandbox Code Playgroud)

您可能还需要根据您的环境提供 bash 的完整路径。