Hello ccnet-user list,

I am currently migrating a little test project from CC.Net 1.4.4 SP1
to CC.Net 1.5 RC1.
The builds are running fine. Lately I came across the email publisher
attachment feature. It looks great, but I am wondering if the file
path could be built dynamically. More precisely, I would like to send
a ZIP file from the Artifact Directory (actually a package generated
beforehand by CC.Net and placed to the default location).
I tried something like this :

<attachments>
  <file>${CCNetArtifactDirectory}\${CCNetLabel}\logs.zip</file>
</attachments>

But it did not work, and CCValidator showed me that <file> is made
into a <string> token without any modification.

I tried to perform the same operation with the hardcoded path () :

<attachments>
  <file>C:\Program Files\CruiseControl.NET\server\TEST-PROPS\Artifacts
\50\logs.zip</file>
</attachments>

and it behaved like said in the documentation.
I tried to use a dynamicValue, since it seemed to me that it was the
best fitted to this kind of operation, and ended with the following
(abridged) version :

<email>
[...]
<dynamicValues>
  <directValue property="attachments.file" parameter="$
{CCNetArtifactDirectory}\${CCNetLabel}\logs.zip" default="$
{CCNetArtifactDirectory}\${CCNetLabel}\logs.zip" />
</dynamicValues>
</email>

In this version, there is no attachment section.
All of these trials gave me the same results : the given string was
copied verbatim to the processed version of the configuration file (as
shown by CCValidator)

Could someone enlighten me about this ? I may be missing something
important there (I am still a newbie, after all) If not, could this
become a feature request ? It would be very neat to be able to use the
Integration properties to configure the plugins directly. (if that's
already the case, could someone point me to some documentation ?)

Many thanks to those who are willing help me.

Kind regards,

Francis.

To unsubscribe from this group, send email to 
ccnet-user+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to