CI Server - Hudson Using Serials: Installation(1)

持续集成服务Continuous Integration(CI server)之 Hudson使用一

 

Today I am researching CI server -Hudson which is used for daily build, and I use maven for project build:

 

Hudson official site:  http://hudson-ci.org/

 

Download latest version:  http://hudson-ci.org/latest/hudson.war

 

Use Hudson:  http://wiki.hudson-ci.org/display/HUDSON/Use+Hudson

                      http://www.javaworld.com/javaworld/jw-12-2008/jw-12-hudson-ci.html?page=1

 

 

Following is records of my using steps:

1. Download Hudson which is war package (Current version is 1.348)

 

2. Copy it into {Tomcat_Home}/webapps and set HUDSON_HOME, you'd better create a seperate directory like D:\hudsonHome, then set environment as

          HUDSON_HOME=D:\hudsonHome

Note: If you on Linux, mkdir /usr/local/hudsonHome,

          HUDSON_HOME=usr/local/hudsonHome

          export HUDSON_HOME

 

3. Start Tomcat. (Be sure you have installed jdk(better jdk1.6) and maven(better 2.2.1 above))

 

4. System manage:  http://localhost:8080/hudson/manage

 

    select Global settings( 全局设置 ):

  a. configure maven:

     uncheck option Install automatically.

     name: mavem2.2.1

     MAVEN_HOME: E:\eclipsedrivers\apache\maven-2.2.1

  b. configure JDK:

     uncheck option Install automatically.

     name: jdk6

     JAVA_HOME: D:\Java\jdk1.6.0_10

  c. Hudson URL: http://127.0.0.1:8080/hudson/ (If you use localhost you will get a warning)

 

5. Create a new task:   http://127.0.0.1:8080/hudson/newJob

 

   a. input job name: maven

  and select Build a maven2 project

 

   b. In Source Code Management choose CVS part:

     cvs root : pserver:{cvsusername }:{cvsuserpassword }@{cvshost }:/cvs/{cvsmodule }       Module(s): {CVS_Module }

     Branch: please left empty if it is in HEAD, input it if it is in Branch

   c. In Build part:

      Root POM: pom.xml  (If warning please left empty)

   d. click Save OK.

 

6. Run task:

   In http://127.0.0.1:8080:8080/hudson/job/maven/

  Choose Build Now ( 立即生成 )

 

7. Then your project will be downloaded in {.hudson}\jobs\{your task name}\workspace

   You can see the module at: http://127.0.0.1:8080/hudson/job/maven/modules

     

localsitehttp://localhost:8080/hudson/

              http://10.224.118.133/hudson/

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值