控制何时在 hudson 中执行 Windows 批处理命令
我目前使用 Hudson CI,想知道是否可以根据构建中是否有更改来有条件地执行构建步骤。目前,我们有一个计划每天运行的自动构建过程,批处理命令会自动标记每个构建。但是,如果没有更改,我不需要它来标记构建。
谢谢
I currently use Hudson CI and would like to know if it's possible to conditionally execute a build step depending on if there are changes in the build or not. We currently have an automatic build process that is scheduled to run daily, and the batch command automatically tags each build. However, I don't need it to tag a build if there are no changes.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望定期构建仅在 SCM 发生更改时运行,您可以从定期构建触发器切换到“轮询 SCM”触发器,并将 SCM 轮询计划设置为与现有构建相同的 cron 模式。
If you want a periodic build that only runs if there has been an SCM change you can switch from a periodic build trigger to a "Poll SCM" trigger, with the SCM polling schedule set to the same cron pattern as your existing build.