是否可以延迟 Hudson 上的 CI 构建,直到提交活动逐渐减少?
这是我第一次设置 Hudson,我想以以下方式进行触发器构建:(
我们使用 SVN)
- 在提交之后,但仅在特定时间段内没有更多提交活动之后。 如果每次提交发生在某个小的时间增量内,我不想触发构建。 例如,在提交上标记待处理的构建/任务,但要等到一段时间内不再发生任何提交。
我不想在每个时间段都触发构建 - 我希望时间段和提交都已发生。 另请注意,如果最后一次提交是最近的,则不应进行构建 - 我们需要等待一些不活动。
我可能最终会进行日常构建。 我真的对每一次提交的独特构建感到畏缩。 目前,Win32 构建需要 20 分钟到一个小时,具体取决于计算机。 当我们有跨平台构建时,这也将是巨大的。
我也愿意接受关于在每次提交上进行构建的评论和争论。 (请注意,其中一个开发人员的模式是连续提交几组不同的文件。)我不想花费所有的 cpu 周期和磁盘空间来构建一个在一分钟内无用/丢弃的构建或两个。 我也不认为同时运行多个构建(hudson 这样做还是等待构建完成)是有用/可取的。
This is my first time setting up Hudson and I would like to do trigger builds int he following manner:
(We're using SVN)
- after a commit, but only after no more commit activity for a certain time period. I do not want to trigger a build for each commit if they happen within some small time delta. For example, flag a pending build/task on a commit, but wait until no more commits have happened for a period of time.
I don't want to just trigger a build each time period - I want time periods AND a commit to have taken place. Note also that the build should not take place if the last commit was very recent - we need to wait for some inactivity.
I may just end up doing a daily build. I really cringe about a unique build on every single commit. Right now the Win32 builds take 20 minutes to an hour depending on the machine. When we have cross platform builds that will be substantial as well.
I'm also open to comments and arguments for doing a build on each commit. (Note that the pattern of one of the developers is to commit a few different sets of files - in close succession. ) I'd rather not spend all the cpu cycles and disk space making a build that will be useless/dropped within a minute or two. I also don;t think that running multiple builds at the same time (does hudson do this or does it wait for a build to complete) is useful/desirable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需在每个项目的配置下设置构建的安静期即可。
替代文本 http://img40.imageshack.us/img40/6357/hudsonquietperiod。 png
您只需要 5 秒以上的时间。
Hudson 一次可以进行 1 个以上的构建,您只需要设置额外的 构建从站 。
Just set the quiet period on the build, under configure for each project.
alt text http://img40.imageshack.us/img40/6357/hudsonquietperiod.png
You'll just want a lot more than 5 seconds.
Hudson can do more than 1 build at a time, you just need to set up additional build slaves.