【发布时间】:2013-08-08 23:58:13
【问题描述】:
为什么我不能让 Jenkins“Powershell 插件”工作?
我可以使用“执行 windows 批处理命令”构建步骤在 Jenkins 上运行 powershell 脚本,并使用以下命令:
powershell -ExecutionPolicy ByPass -File script.ps1
但我无法使用“Windows Powershell”构建步骤和此命令使用 Jenkins“Powershell 插件”运行 powershell 脚本,因为 Windows 执行策略未设置错误,不允许它运行:
script.ps1
有谁知道正确的参数给 Jenkins“Powershell 插件”以使其成功运行脚本?否则,我将只使用批处理脚本解决方法。
【问题讨论】:
标签: powershell jenkins powershell-2.0 jenkins-plugins