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/

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Running in Durability level: MAX_SURVIVABILITY [2023-06-02 14:07:25] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [2023-06-02 14:07:25] WorkflowScript: 26: No steps specified for branch @ line 26, column 13. [2023-06-02 14:07:25] steps { [2023-06-02 14:07:25] ^ [2023-06-02 14:07:25] [2023-06-02 14:07:25] 1 error [2023-06-02 14:07:25] [2023-06-02 14:07:25] at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310) [2023-06-02 14:07:25] at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1085) [2023-06-02 14:07:25] at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603) [2023-06-02 14:07:25] at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581) [2023-06-02 14:07:25] at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558) [2023-06-02 14:07:25] at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) [2023-06-02 14:07:25] at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) [2023-06-02 14:07:25] at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) [2023-06-02 14:07:25] at groovy.lang.GroovyShell.parse(GroovyShell.java:700) [2023-06-02 14:07:25] at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:142) [2023-06-02 14:07:25] at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:127) [2023-06-02 14:07:25] at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:571) [2023-06-02 14:07:25] at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:523) [2023-06-02 14:07:25] at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:327) [2023-06-02 14:07:25] at hudson.model.ResourceController.execute(ResourceController.java:100) [2023-06-02 14:07:25] at hudson.model.Executor.run(Executor.java:433) [2023-06-02 14:07:25] Finished: FAILURE
06-03

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值