Which part of HUDSON_HOME should I put under source control?

前端 未结 3 1580
醉梦人生
醉梦人生 2021-02-04 12:54

I\'d like to manage Hudson\'s configuration files with subversion for backup. The Hudson Wiki lists the directory structure of $HUDSON_HOME like so:

HUDSON_HOME
         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-02-04 13:32

    I do use an SCM for managing my Hudson configuration. I keep the top-level config.xml and the config.xml for each job. I've got a little script that I use to fetch the configs from Hudson and commit/add/delete them as necessary (along with some other bells and whistles that makes managing the configuration easier).

    Re Rob Hruska's points, for my particular setup:

    • configurations do change often (notifications, especially)
    • (see above re a script to make the updates)
    • I diff things all the time. We have more than one admin who can update the configuration, and these diffs are useful

    All that said, every situation is different. The management I do for the configs didn't (and doesn't) come for free. A cron job that zips everything up nightly is definitely cheaper and may be sufficient, too.

提交回复
热议问题