有没有办法让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>
答案 0 :(得分:0)
你应该能够使用fileMerge任务包含它,如下所示:
<publishers>
<merge>
<files>
<file>C:\Project\test-output\emailable-report.html</file>
<file><!-- path --></file>
</files>
</merge>
</publishers>
编辑:假设该文件是基于XML的......