六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 80|回复: 0

持续集成工具hudson

[复制链接]

升级  66%

41

主题

41

主题

41

主题

秀才

Rank: 2

积分
149
 楼主| 发表于 2013-2-7 18:57:31 | 显示全部楼层 |阅读模式
http://www.blogjava.net/xiaodu/archive/2008/07/08/213298.html


最后项目还是采用了cc,具体配置如下:
<cruisecontrol>    <project name="connectfour">        <listeners>            <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>        </listeners>        <bootstrappers>            <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml" target="clean" />        </bootstrappers>        <modificationset quietperiod="30">            <!-- touch any file in connectfour project to trigger a build -->            <filesystem folder="projects/${project.name}"/>        </modificationset>        <schedule interval="300">            <ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/>        </schedule>        <log>            <merge dir="projects/${project.name}/target/test-results"/>        </log>        <publishers>            <onsuccess>                <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/target/${project.name}.jar"/>            </onsuccess>        </publishers>    </project>            <project name="ezfw">        <listeners>            <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>        </listeners>        <bootstrappers>            <svnbootstrapper localWorkingCopy="projects/${project.name}" />        </bootstrappers>        <modificationset quietperiod="30">            <!-- touch any file in connectfour project to trigger a build -->            <filesystem folder="projects/${project.name}"/>        </modificationset>        <schedule interval="3600">            <ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/>        </schedule>        <!--log>            <merge dir="projects/${project.name}/target/test-results"/>        </log-->        <publishers>            <onsuccess>           <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/dist/${project.name}.war"/>              </onsuccess>                      <htmlemail mailhost="smtp.aa.com.cn"                               returnaddress="fengyu@aa.com.cn"                               skipusers="true"                               subjectprefix="[admin.Build.Server]"                               buildresultsurl="http://10.10.129.74:8080/dashboard"                               username="aa"                               password="aa"                               charset="UTF-8">                               <failure address="fengyu8299@gmail.com" />                               <success address="fengyu8299@gmail.com" />                         </htmlemail>          </publishers>    </project></cruisecontrol>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表