senzacionale
senzacionale

Reputation: 20916

CruiseControl.NET and merging files. How to send log files?

<publishers>
    <xmllogger>
        <logDir>log</logDir>
    </xmllogger>
    <merge>
        <files>
            <file action="Copy" deleteAfterMerge="false">C:\_CCNET\Aso\Artifacts\msbuild-results.xml</file>
            <file action="Copy" deleteAfterMerge="false">C:\_CCNET\Aso\Build\src\TestResult.xml</file>
        </files>
    </merge>
    <email from="[email protected]" mailhost="mail.xx.net" mailhostUsername="xx" mailhostPassword="xx">
        <users>
            <user name="x" group="developers" address="[email protected]"/>
        </users>
        <groups>
            <group name="developers" />
        </groups>
    </email>
</publishers>

and xmllogger create folder log and save file in it with random name like log20111229001245.xml.

How can I merge this file to msbuild-results.xml and send it with mail?

Upvotes: 3

Views: 479

Answers (1)

skolima
skolima

Reputation: 32684

You don't, at least not the way you are approaching this. The standard way would be:

  1. Replace your xmllogger configuration with simple <xmllogger/> and put it after the merge publisher.
  2. Unless the msbuild-results.xml and TestResult.xml files are very large, use action="Merge" instead of Copy for the merge publisher.
  3. Set you email publisher to includeDetails="TRUE" - once the other files are merged into you build report, that tells CruiseControl.Net to output the full build report in the email.

Upvotes: 2

Related Questions