Hudson 设置版本控制的最佳实践
我们在项目中经常使用 Hudson 持续集成服务器。但 Hudson 似乎缺乏作业配置的正确版本控制。
有几次,这会导致问题:有人更改或调整作业的配置,而以前可以工作的东西停止工作。
我尝试在本地 Hudson 服务器(在我的笔记本电脑上)上进行版本控制作业。但这不是最佳选择:1)它只适合我。 2)我需要从中央构建服务器镜像作业 - 并且可能还需要修改它们以在本地工作。 3)设置.gitignores来忽略文件是相当麻烦的。
据我所知,Hudson 中没有办法查看作业的更改历史记录,也没有插件可以做到这一点。
此外,似乎无法导出/导入设置。
所以问题是:如何跟踪变化?无论是工作还是哈德逊的总体设置?
We're using Hudson continuous integration server frequently on projects. But Hudson seems lacking of proper versioning of the jobs configuration.
A few times, this has lead to problems: Somebody changes or tweaks the configuration on jobs and something that used to work stopped working.
I have tried to version-control jobs on my local Hudson server (on my laptop). But this is not optimal: 1) it's only for me. 2) i need to mirror jobs from a central build server – and may also need to modify them to work locally. 3) It's pretty cumbersome to setup .gitignores for files to ignore.
As far as I know, there is no way in Hudson to view change history of jobs, and no plugin does it either.
Also, there seems to be no way to export/import settings.
So the question is: How do you keep track of changes? Both in jobs and in general setup of Hudson?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅 我应该将 HUDSON_HOME 的哪一部分置于源代码管理之下?
审核跟踪插件可能对如果有人破坏了配置并且您无法追踪它,那么您也是如此。
See Which part of HUDSON_HOME should I put under source control?
The Audit Trail plugin might be useful to you too if people are breaking configurations and you're having trouble tracking it down.
这是我刚刚发现的另一个选项:
JobConfigHistory
Here is another option that I just found:
JobConfigHistory