This is a simple guide to install hudson, plugins and configure hudson. If you want more detail about hudson, please contact me(
keyongshi@hengtiansoft.com).
what is hudson
Hudson monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Hudson focuses on the following two jobs:
-
Building/testing software projects continuously, just like CruiseControl or DamageControl. In a nutshell, Hudson provides an easy-to-use so-called continuous integration system, making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. The automated, continuous build increases the productivity.
- Monitoring executions of externally-run jobs, such as cron jobs and procmail jobs, even those that are run on a remote machine. For example, with cron, all you receive is regular e-mails that capture the output, and it is up to you to look at them diligently and notice when it broke. Hudson keeps those outputs and makes it easy for you to notice when something is wrong.
How to install hudson
-
download hudson.war from hudson official website: https://hudson.dev.java.net/.
-
put it in a servlet container like tomcat ( $TOMCAT_HOME/webapps), it doesn't need database, setup hudson is so convenient.
-
visit http://yourhost/hudson to confirm whether hudson is ok.
How to install plugins
click "Manage Hudson" then click "Manage Plugins", choose "available" label, now you can see a lot of plugins, choose what you want and click "install" whick is bottom right of page, your choosed plugins are installed, plugins will work after you restart hudson.
How to configure hudson
- visit http://yourhost/hudson and click "Manage Hudson" and then click "Configure System", there are some parameters you should know:
-
system.message :some information
-
Quiet period:at least time of from check in svn to hudson build project(second)
-
Enable security:set rule of login hudson(default is anonymos)
-
JDK installations:set install path of JDK, if you haven't install in your server, even you can install in hudson.
-
Ant installation:set install path of ant, if you haven't install in your server, even you can install in hudson.
-
e-mail notification:set mail server and who send e-mail
-
hudson url: default web address of hudson
-
- click "New Job", fill in your project name and choose "Build a free-style software project", you will come to project page and configure project, there are some parameters you should know too:
-
Project name: project name
-
Description: description
-
Discard build: set build log save for some days, or save some nearest logs
-
Subversion: address of svn, and account to connect svn
-
Build Triggers: set hudson when to run project
-
Build: set run which buildfiles and which targets
-
Post-build Actions: set some result, such as notification, generate javadoc, generate test report and so on
-
More about Hudson:
Hudson official website:
http://hudson-ci.org/
Introduce of plugins:
http://wiki.hudson-ci.org/display/HUDSON/Plugins
Introduce of plugins(chinese):
http://jdonee.javaeye.com/blog/515424
Introduce of configure hudson(chinese):
http://blog.youkuaiyun.com/turkeyzhou/archive/2009/09/21/4577617.aspx
本文提供了一个简单的Hudson安装、插件安装与系统配置教程,包括Hudson的基本概念、安装步骤、插件使用方法以及系统配置细节。
2387

被折叠的 条评论
为什么被折叠?



