WEB开发网
开发学院软件开发Java 基于 CruiseControl 和 Rational 统一变更管理实现... 阅读

基于 CruiseControl 和 Rational 统一变更管理实现的软件开发中的自动化持续构建

 2009-12-18 00:00:00 来源:WEB开发网   
核心提示: 清单 5. 通过 email 通知构建结果<!--Publishersarerun*after*abuildcompletes--><publishers><pluginname="htmlemail"buildresultsurl="


清单 5. 通过 email 通知构建结果
<!-- Publishers are run *after* a build completes --> 
<publishers> 
<plugin name="htmlemail" 
 buildresultsurl="http://build-server:8080/cruisecontrol/buildresults/${project.name}" 
 mailhost="mail-server" 
 returnaddress="CruiseControl@build-server " 
 returnname="CruiseControl" 
 subjectprefix="[CruiseControl]" 
 xsldir="webapps/cruisecontrol/xsl" 
 css="webapps/cruisecontrol/css/cruisecontrol.css" 
 skipusers="false"> 
 <map alias="lilywang" address="wxiaolei@cn.ibm.com" /> 
 <failure address="lilywang" reportWhenFixed="true" /> 
 </plugin> 
</publishers> 

在 CruiseContrl 与 UCM 集成环境实现每日构建

与上一章节介绍的单元构建不同,每日构建是每天定时启动的。如果在规定的启动时间之前集成流上有代码交付,CruiseControl 启动构建。下面的设置在晚上 9 点启动任务,如果有新的版本在集成流 TestProject_Integration 上创建,CruiseControl 执行每日构建脚本 cc-build-nightly.xml。


清单 6. 配置定时启动任务
 <!-- Defines where cruise looks for changes, to decide whether to run the build --> 
 <modificationset quietperiod="180"> 
 <ucm stream="TestProject_Integration" 
 viewPath="C:/TestProject_int_view/Test.CompVOB" 
 contributors="true"/> 
</modificationset> 
 
<!-- Configures the actual build loop, how often and which build file/target --> 
<schedule> 
 <ant antscript="C:/Program Files/CruiseControl/apache-ant-1.7.0/bin/ant.bat" 
 buildfile="cc-build-nightly.xml" 
 target="build" 
 time="2100"> 
<property name="cc.viewtag" value="TestProject_int_view"/> 
<property name="cc.viewroot" value="C:/TestProject_int_view"/> 
 <property name="cc.stream" value="TestProject_Integration"/> 
 </ant> 
</schedule> 

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:基于 CruiseControl Rational

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接