译自:http://wiki.hudson-ci.org/display/HUDSON/Administering+Hudson
HUDSON_HOME主目录
Hudson需要一些磁盘空间来执行构建和保存归档。您能通过Hudson的配置截面来检查这个位置。
默认情况下,它被设置在~/.hudson(PS:~也就是C:\Documents and Settings\XXX)。但是,您可以通过下列方式改变它的位置:
- 首先您会把hudson.war存放在servlet容器的发布目录,那么在启动servlet容器前先设置“HUDSON_HOME”环境变量并添加一个新的地址做为Hudson的主目录。(PS:我个人推荐这么做。)
- 在servlet容器中设置“HUDSON_HOME”系统属性。
- 设置JNDI环境时输入“HUDSON_HOME”指向新的目录。
更多的关于如何在您的容器中安装它请查阅容器详细文档归集。
你也可以在使用Hudson一段时间以后再来改变这个地址。要做到这一点,您必须完全停止Hudson,把旧的HUDSON_HOME下所有的内容移动到新的目录,设置新的HUDSON_HOME,然后重启Hudson。
HUDSON_HOME包含一个相当清晰的目录结构,如下所示:
备份和还原
所有的设置、构建日志和构件归档都是存储在HUDSON_HOME 目录下。所以,您只要简单的对这个目录做一个备份即可(PS:为备份目录定义一个日期是良好的习惯)。同理,还原数据也仅仅从一个备份中替换当前HUDSON_HOME目录的内容。
备份的时候您不需要停止服务器,但是,还原的时候则请停止服务器。
移动、复制、重命名作业
您可以:
- 通过从一个已安装的Hudson中简单复制相应作业目录的方式移动一个作业到另一个作业目录。
- 通过在同一个作业目录下复制并重命名一个已存在的作业。
- 通过重命名一个目录来重命名一个作业。
这些操作即使在Hudson正在运行的时候也能通过。当然,您要让这些更改生效的话,必须点击“Reload Configuration from Disk”,以迫使Hudson从磁盘中重载配置。
归集未使用的作业
有时候,您想从Hudson中移除一个作业,但是稍后又能以同样的方式来恢复它,如果这么做有必要的话。为此,您能通过定位到$HUDSON_HOME然后创建一个作业目录的归档来实现它。下面的命令描述了如何归档一个作业“XYZ”然后删除它。
只要你不是在创建一个xyz归档的同时构建此项目,您就可以不用让Hudson脱机后再来执行此操作。
分享到:
相关推荐
For Production use, Hudson 3.3.1 from the Eclipse Foundation is now available. This WAR file is suitable for any O/S. We recommend that users of 3.0, 3.1, 3.2 or 3.3.0 upgrade to this release. his ...
Hudson. The OpenSSL toolkit is licensed under an Apache-style licence, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple ...
Hudson. The OpenSSL toolkit is licensed under an Apache-style licence, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple ...
Should I Use Jenkins or Hudson? 5 Introducing Continuous Integration into Your Organization 6 Phase 1—No Build Server 6 Phase 2—Nightly Builds 6 Phase 3—Nightly Builds and Basic Automated Tests 6 ...
Hudson. The OpenSSL toolkit is licensed under an Apache-style license, which basically means that you are free to get it and to use it for commercial and noncommercial purposes. Authors: -------- ...
Hudson. The OpenSSL toolkit is licensed under an Apache-style licence, which basically means that you are free to get and use it for commercial and non-commercial purposes subject to some simple ...
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)" * * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to * endorse or promote products derived from this software ...
You will learn how to use popular continuous integration systems like Jenkins (formerly known as Hudson) and TeamCity to automatically test your code upon check in. This book explores Python’s built...
Dirk Haase, Greg Hartwig, Robert Heath, Jonathan Hudson, Paul Kienitz, David Kirschbaum, Johnny Lee, Onno van der Linden, Igor Mandrichenko, Steve P. Miller, Sergio Monesi, Keith Owens, George ...
Hudson. The OpenSSL toolkit is licensed under a dual-license (the OpenSSL license plus the SSLeay license) situation, which basically means that you are free to get and use it for commercial and ...
• This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. ( org/>) Copyright © 1998-2006 The OpenSSL Project. All rights reserved. This product includes ...
-n, --diff-only Create diff, but do not send to Hudson -v, --verbose Verbose (show shell commands as they're run) -p, --patch ... Path to patch file to use instead ...