我希望使用Subversion管理Hudson的配置文件以进行备份。 Hudson Wiki列出了$HUDSON_HOME的目录结构如下:
HUDSON_HOME
+- config.xml (hudson root configuration)
+- *.xml (other site-wide configuration files)
+- fingerprints (stores fingerprint records)
+- plugins (stores plugins)
+- jobs
+- [JOBNAME] (sub directory for each job)
+- config.xml (job configuration file)
+- workspace (working directory for the version control system)
+- latest (symbolic link to the last successful build)
+- builds
+- [BUILD_ID] (for each build)
+- build.xml (build result summary)
+- log (log file)
+- changelog.xml (change log)
显然,jobs/[JOBNAME]/builds不应该进入源代码控制,但config.xml是一个很好的选择。插件和指纹则不那么明显。
你如何管理你的Hudson配置?