有没有办法将 Hudson/Jenkins 配置文件保留在源代码管理中? [英] Is there a way to keep Hudson / Jenkins configuration files in source control?
问题描述
我是 Hudson/Jenkins 的新手,想知道是否有办法将 Hudson 的配置文件签入到源代码控制中.
I am new to Hudson / Jenkins and was wondering if there is a way to check in Hudson's configuration files to source control.
理想情况下,我希望能够单击 UI 中显示保存配置"的某个按钮,并将 Hudson 配置文件签入源代码管理.
Ideally I want to be able to click some button in the UI that says 'save configuration' and have the Hudson configuration files checked in to source control.
推荐答案
最有帮助的答案
有一个插件叫做SCM Sync配置插件.
看看 我对类似问题的回答.基本思想是使用 filesystem-scm-plugin检测对 xml 文件的更改.您的第二部分是将更改提交到 SVN.
Have a look at my answer to a similar question. The basic idea is to use the filesystem-scm-plugin to detect changes to the xml-files. Your second part would be committing the changes to SVN.
如果您找到了确定更改用户的方法,请告诉我们.
If you find a way to determine the user for a change, let us know.
EDIT 2011-01-10 同时有一个新插件:SCM 同步配置插件.目前它仅适用于 subversion 和 git,但计划支持更多存储库.我从 0.0.3 版开始使用它,到目前为止效果很好.
EDIT 2011-01-10 Meanwhile there is a new plugin: SCM Sync configuration plugin. Currently it only works with subversion and git, but support for more repositories is planned. I am using it since version 0.0.3 and it worked good so far.
这篇关于有没有办法将 Hudson/Jenkins 配置文件保留在源代码管理中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!