Jenkins:成功构建后如何执行powershell脚本

Jenkins: How to execute powershell script after successful build

我想在 Jenkins 成功构建 后执行 powershell 脚本 (PS)。这个 PS 脚本主要是将应用程序部署到 Web 服务器。我看到有两个插件可用 Hudson Post Build Task and PostBuildScript Plugin 到 运行 post 部署脚本。

我可以使用这两个中的任何一个吗?有没有比其他人推荐的?

此外,这两个插件都有一个 shell 脚本 选项。那是powershell脚本吗?

其实还有第三种……我用过的最适合你情况的可能是PowerShell Plugin

据我所知,无法在 Jenkins 作业的 post-build 部分执行 Powershell 脚本(目前)。

搜索“”是基于该观察,即 Powershell 脚本需要包含在 Jenkins 版本 2.32.3 的构建部分中。