CruiseControl学习之--config.xml(2.8.4)

    截止本日,CruiseControl(简称CC)最新版本为2.8.4,此版本安装好以后,默认的config.xml提高了一个名为"connectfour"的示例,配置非常简洁,基本上通过与官方网站上的《Configuration Reference》对比一下便会基本了解。

    可以通过这里了解config.xml的所有元素(elements):http://cruisecontrol.sourceforge.net/main/configxml.html

    关于config.xml文件的讲解你可以在这里发现:http://confluence.public.thoughtworks.org/display/CC/ConfigFiles

    日后若空闲会将其翻译成中文版。

 

<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>
</cruisecontrol>


 

posted on 2012-02-08 15:27  oldjiang  阅读(415)  评论(0编辑  收藏  举报

导航