我从周末回来发现有人 ****ahem**** 在星期五下午的最后一件事上错过了文件提交......巡航控制一直很有趣,并且从那时起尝试每五分钟重新构建一次,尽管没有进一步的提交。
这意味着我和我的同事已经收到了大约六封来自巡航控制的电子邮件。一封失败的电子邮件足以通知我们。
有没有办法阻止巡航控制建立失败,至少在新的提交发生之前?
编辑:添加了配置 xml
<project name="XXXX">
<listeners>
<currentbuildstatuslistener file="logs/${project.name}/status.txt" />
</listeners>
<bootstrappers>
<svnbootstrapper file="https://XXXXX/trunk/build/cruisecontrol.xml" username="XXXX" password="XXXX" />
</bootstrappers>
<modificationset quietperiod="300">
<svn localWorkingCopy="projects/${project.name}/" RepositoryLocation="https://XXXXX/trunk/project1" username="XXXX" password="XXXX" />
<svn localWorkingCopy="projects/${project.name}/" RepositoryLocation="https://XXXXX/trunk/project2" username="XXXX" password="XXXX" />
<svn localWorkingCopy="projects/${project.name}/" RepositoryLocation="https://XXXXX/trunk/project3" username="XXXX" password="XXXX" />
<svn localWorkingCopy="projects/${project.name}/" RepositoryLocation="https://XXXXX/trunk/project4" username="XXXX" password="XXXX" />
</modificationset>
<schedule interval="300">
<ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build/cruisecontrol.xml" propertyfile="projects/${project.name}/project1/production.build.properties" />
</schedule>
<log dir="logs/${project.name}/">
<merge file="projects/${project.name}/_reports/checkstyle_report.xml" />
<merge dir="projects/${project.name}/_reports/pmd_report.xml" />
<merge dir="projects/${project.name}/_reports/junit" />
</log>
<publishers>
<onsuccess>
<artifactspublisher dest="artifacts/${project.name}" dir="projects/${project.name}/_dist" />
<artifactspublisher dest="artifacts/${project.name}" dir="projects/${project.name}/_reports" subdirectory="_reports"/>
</onsuccess>
<email spamWhileBroken="true" returnAddress="XXX@EXAMPLE.com" subjectPrefix="[BUILD]" buildResultsURL="http://XXXXX/dashboard/build/detail/project" mailHost="mail.EXAMPLE.com" skipUsers="true" >
<failure address="XXX@EXAMPLE.com" />
<success address="XXX@EXAMPLE.com"/>
</email>
</publishers>