来自cruisecontrol的电子邮件报告?

时间:2009-05-18 12:13:31

标签: testing cruisecontrol

有没有办法让cruisecontrol通过配置文件发送电子邮件测试结果? C:\ Program Files \ cruisecontrol \ test-output \ index.html

这是我在config.xml中的当前发布设置:

 <publishers>
        <currentbuildstatuspublisher file="${log.dir}/status.txt"/>
        <htmlemail
    buildresultsurl="http://${build.server}/buildresults/${project.name}"
            subjectprefix="[CruiseControl] " 
            xsldir="${cruise.install.dir}/webapps/cruisecontrol/xsl"
    css="${cruise.install.dir}/webapps/cruisecontrol/css/cruisecontrol.css"
            logdir="${log.dir}"
            mailhost="mailhost" defaultsuffix="@myemail.com" reportsuccess="always"
            returnaddress="${return.email}"
    >
    <always address="${team.email}"/>
    </htmlemail>
 </publishers>

1 个答案:

答案 0 :(得分:0)

你应该能够使用fileMerge任务包含它,如下所示:

<publishers>
  <merge>
    <files>
      <file>C:\Project\test-output\emailable-report.html</file>
      <file><!-- path --></file>
    </files>
  </merge>
</publishers>

编辑:假设该文件是基于XML的......