<http://stackoverflow.com/questions/21117476/cruisecontrol-net-conditionalpublisher-node-not-working#>
I am trying to put a conditional block around my publisher block to check
for the existence of the nunit results files. Not all projects will have
unit tests associated with them so I want to make sure the unit tests
results xml files exists before I merge.
<conditionalPublisher>
<conditions>
<fileExistsCondition>
<file>$(Artifacts)\$(ProjectName)-UnitTestsResults.xml</file>
</fileExistsCondition>
</conditions>
<publishers>
<merge>
<files>
<file>$(Artifacts)\$(ProjectName)-UnitTestsResults.xml</file>
<file>$(Artifacts)\$(ProjectName)-coverageReport.html</file>
</files>
</merge>
<xmllogger />
<statistics />
<modificationHistory onlyLogWhenChangesFound="true" />
</publishers>
</conditionalPublisher>
When I run the file through the CruiseControl.net Configuration Validation
tool it gives me the following error: Unused Node detected
<conditionalPublisher>...
If I remove the conditionalPublisher nodes and just have the publishers
node all is well. What am i missing?
--
---
You received this message because you are subscribed to the Google Groups
"ccnet-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.