Best practices for versioning Hudson settings

2020-05-29 11:01发布

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?

2条回答
趁早两清
2楼-- · 2020-05-29 11:28

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.

查看更多
何必那么认真
3楼-- · 2020-05-29 11:31

Here is another option that I just found: JobConfigHistory

查看更多
登录 后发表回答