持续集成工具hudson
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="" 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>
页:
[1]