CruiseControl status htmlemail

CruiseControll 构建失败后无状态更新,及email发出的原因
<cruisecontrol>
    <project name="connectfour">

        <listeners>
            <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
        </listeners>

        <bootstrappers>
             <svnbootstrapper localWorkingCopy="projects/${project.name}/bss.lib/" />
        </bootstrappers>

        <modificationset quietperiod="2">
            <!-- 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>


	<htmlemail buildresultsurl="http://localhost:8080/cruisecontrol/buildresults/${project.name}"
                                mailhost="124.207.3.22" password="840119^xhjj" username="asd"
                                charset="UTF-8" skipusers="true"
                                returnname="Cruisecontrol Daily Build"
                                returnaddress="[email protected]"
                                subjectprefix="Build Report"
                                xsldir="webapps/cruisecontrol/xsl" css="webapps/cruisecontrol/css/cruisecontrol.css">

                                <!--<always address="[email protected]" />-->

                               
                        </htmlemail>

        </publishers>

    </project>
</cruisecontrol>




原因分析:
<bootstrappers>  主要同来做编译前的更新代码操作,不要做编译操作

编译,打包,代码检查...操作由<schedule><ant/></schedule>来完成


如果bootstrappers里存在编译操作,编译正确的话不会存在问题,编译错误的话,构建结果状态不更新,邮件不发
2012-02-06 15:29:36,360 [Thread-95] INFO  ScriptRunner     - BUILD SUCCESSFUL
2012-02-06 15:29:36,360 [Thread-95] INFO  ScriptRunner     - Total time: 4 seconds
2012-02-06 15:29:36,442 [Thread-83] INFO  ProjectController - projectAAA Controller: build result event: build successful
2012-02-06 15:29:36,444 [Thread-83] INFO  Project          - Project projectAAA:  merging accumulated log files
2012-02-06 15:29:36,445 [Thread-83] INFO  ProjectController - projectAAA Controller: build progress event: merging accumulated log files
2012-02-06 15:29:36,491 [Thread-83] INFO  Project          - Project projectAAA:  build successful
2012-02-06 15:29:36,492 [Thread-83] INFO  Project          - Project projectAAA:  publishing build results
2012-02-06 15:29:36,492 [Thread-83] INFO  ProjectController - projectAAA Controller: build progress event: publishing build results



CC 通过此处来判定 构建结果
projectAAA Controller: build result event: build successful


bootstrappers处编译错误的话,就走不到这个地方了

你可能感兴趣的:(status)