`
balaschen
  • 浏览: 192347 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

cruisecontrol-2.7配置示例

阅读更多
xml 代码
  1. <cruisecontrol>  
  2.     <project name="CW-2007-06-05-SMS">  
  3.         <property name="cvsroot" value=":pserver:keven:*******@192.168.1.1:/home/cvsroot"/>  
  4.         <property name="module" value="${project.name}"/>  
  5.         <listeners>  
  6.             <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>  
  7.         </listeners>  
  8.   
  9.         <modificationset quietperiod="30">  
  10.             <cvs cvsroot="${cvsroot}" module="${module}"/>  
  11.         </modificationset>  
  12.   
  13.         <schedule interval="300">  
  14.             <ant anthome="apache-ant-1.6.5" buildfile="sms-build.xml"/>  
  15.         </schedule>  
  16.   
  17.         <log>  
  18.             <merge dir="projects/${project.name}/build/build/junit-result"/>  
  19.         </log>  
  20.   
  21.         <publishers>  
  22.             <onsuccess>  
  23.                 <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/build/build/dist/sms.war"/>  
  24.             </onsuccess>  
  25.             <htmlemail mailhost="smtp.163.com" username="keven" password="*******"  
  26.                 returnaddress="keven#163.com"    
  27.                 buildresultsurl="http://192.168.1.18:81/buildresults/${project.name}"    
  28.                 css="report/css/cruisecontrol.css" xsldir="report/xsl" logdir="logs/${project.name}" charset="UTF-8">  
  29.                 <map alias="keven" address="keven#comwave.com.cn"/>  
  30.                 <failure address="keven#comwave.com.cn"/>  
  31.                 <always address="keven#comwave.com.cn"/>  
  32.             </htmlemail>  
  33.         </publishers>  
  34.   
  35.     </project>  
  36. </cruisecontrol>  
xml 代码
  1. <!---->xml version="1.0"?>  
  2. <!---->-- ======================================================================    
  3.      2007-8-3 上午10:19:29                                                           
  4.   
  5.      project       
  6.      description   
  7.                       
  8.      balas                                                                   
  9.      ====================================================================== -->  
  10. <project name="sms-cc-build" default="main" basedir=".">  
  11.     <description>  
  12.         sms-cc-build   
  13.     description>  
  14.   
  15.     <property name="cvsroot" value=":pserver:keven:******@192.168.1.1:/home/cvsroot"/>  
  16.     <property name="module" value="CW-2007-06-05-SMS"/>  
  17.     <property name="project.name" value="${module}"/>  
  18.        
  19.     <target name="clean">  
  20.         <ant antfile="projects/${project.name}/build/build.xml" inheritall="false" target="clean"/>  
  21.     target>  
  22.        
  23.     <target name="update-source">  
  24.         <cvs cvsroot="${cvsroot}" dest="projects" package="${module}" command="co"/>  
  25.     target>  
  26.        
  27.     <!---->-- =================================    
  28.           target: default                 
  29.          ================================= -->  
  30.     <target name="main">  
  31.         <antcall target="clean"/>  
  32.         <antcall target="update-source"/>  
  33.         <ant antfile="projects/${project.name}/build/build.xml" inheritall="false" target="junit"/>  
  34.     target>  
  35. project>  
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics