Jenkins:如何在PostBuild部分中执行powershell脚本?

时间:2017-02-01 09:05:54

标签: powershell jenkins jenkins-plugins

我需要在Postbuild部分执行一些代码(因为我需要一个文件存在(changelog),它只能在PostBuild事件中生成)。因为我只需要在成功构建完成后才需要执行此任务。

现在我无法在PostBuild部分选择一个Powershell脚本(我已经安装了powershell插件,我可以在build部分添加一个PowerShell)。

我怎样才能实现这一目标?在这个任务中,我需要移动几个文件(构建,混淆的东西和更改日志)。

谢谢

1 个答案:

答案 0 :(得分:0)

您可以使用 groovy post-build步骤。然后从groovy 启动你的powershell脚本。