Thanks for the update, I can indeed get custom parameters to display
using $[parameter], and the built in project properties vis $
(CCNetProject} etc...but it looks like I can't get them both to work
together. I had wanted to just add an extra tag to the default mail
subject (to note a build from a particular hotfix branch), but:

<subject buildResult="Success" value="${CCNetProject} $[Hotfix]" />

Results in no mail being sent and the following showing up in the
ccnet.log:

2010-06-17 15:59:14,263 [Incremental:ERROR] Publisher threw exception:
System.FormatException: Input string was not in a correct format.
   at System.Text.StringBuilder.AppendFormat(IFormatProvider provider,
String format, Object[] args)
   at System.String.Format(IFormatProvider provider, String format,
Object[] args)
   at
ThoughtWorks.CruiseControl.Core.Tasks.ReplacementDynamicValue.ApplyTo(Object
value, Dictionary`2 parameters, IEnumerable`1 parameterDefinitions)
   at
ThoughtWorks.CruiseControl.Core.Tasks.TaskBase.ApplyParameters(Dictionary`2
parameters, IEnumerable`1 parameterDefinitions)
   at
ThoughtWorks.CruiseControl.Core.Project.PublishResults(IIntegrationResult
result, Dictionary`2 parameterValues)

Hardcoding the CCNet variables into the subject will sort me for now,
but in case anyone experiences the same thing..

Cheers,
Jay

Reply via email to