CruiseControl.NET 与其他构建工具冲突,导致 SVN WC 损坏

发布于 2024-08-06 00:22:18 字数 839 浏览 2 评论 0原文

我正在使用 CC.Net 1.4.4.83 来构建我的项目。我还有一些计划任务,它们使用相同的工作副本在同一机器上独立运行构建。由于一些硬编码路径,我们无法为两个构建过程使用单独的工作副本。我注意到有时计划任务和 CC.NET 会同时尝试某种 SVN 操作(可能是更新),这会导致 SVN WC 需要清理。这会导致计划的构建和 CC.NET 构建都失败,直到我手动干预。

为了避免这个问题,我在 CC.NET 配置文件中放置了一个 FilterTrigger,以防止它在计划任务运行时运行,但这似乎并没有解决问题。

即使 CC.NET 配置为不构建,它是否仍然运行 SVN 更新?我希望 FilterTrigger 的行为只是使其在过滤周期内休眠,但是 文档确实模糊地表明它拒绝构建,而不是它不寻找它们被触发。哪个是文档的正确解释,如果是后者,是否有其他方法可以避免此问题?如果我在 CC.NET 中配置了多个使用相同 WC 的项目,CC.NET 是否会以同样的方式进行自我斗争?

仅供参考,我已经看到这个问题并且它没有解决我的问题。另外,“只需让 CC.NET 运行您的所有构建”的建议虽然很好且正确,但对我来说没有用……我的公司刚刚过渡到使用 CC.NET,而权力机构不愿意花时间修改所有发布打包脚本以立即使用它。非常感谢您的帮助。

I'm using CC.Net 1.4.4.83 to build my project. I also have some scheduled tasks that independently run builds on the same box using the same working copy. Due some hard-coded paths, we can't use a separate working copy for both build processes. I noticed that sometimes both the scheduled tasks and CC.NET would attempt some sort of SVN operation (maybe an update) at the same time and this would cause the SVN WC to need to be cleaned up. This causes both the scheduled build and the CC.NET build to fail until I manually intervene.

In the hopes of avoiding this problem, I put a FilterTrigger in my CC.NET config file to prevent it from running when the schedules tasks run, but that doesn't seem to have solved the problem.

Does CC.NET still run SVN updates even when it is configured not to build? I would expect the behavior of FilterTrigger to just make it sleep for the duration of the filter period, but the documentation does vaguely indicate that it rejects the builds, not that it doesn't look for them to be triggered. Which is the correct interpretation of the documentation, and if it is the latter, is there another way I can avoid this problem? Will CC.NET fight itself in this same manner if I have multiple projects configured in CC.NET that use the same WC?

FYI, I have seen this question and it doesn't address my issue. Also, suggestions of "just make CC.NET run all your builds", while good and correct, are not useful to me... my company is just transitioning to using CC.NET and the powers that be are unwilling to spend the time modifying all the release-packaging scripts to work with it right now. Thank you very much for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

┊风居住的梦幻卍 2024-08-13 00:22:18

FilterTrigger 确实使其在非活动期间休眠。 CCNet 不会在 startTime 和 endTime 之间对项目执行任何操作。您确定问题不是由其他原因引起的吗?

FilterTrigger does make it sleep during the inactive period. CCNet won't do anything with the project between startTime and endTime. Are you sure the problem isn't caused by something else?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文