Email from cruisecontrol?

Is there a way to get cruisecontrol to send the test result email via a config file? C: \ Program Files \ cruisecontrol \ test-output \ index.html

This is my current publish setting in the config.xml file:

 <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


a source to share


1 answer


you have to enable it using fileMerge , something like this:

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

      



Edit: Assuming the file is XML based ...

0


a source







All Articles