CruiseControl.NET: using $(CCNetLabel ) inside ccnet.config file

Posted by minty on Stack Overflow See other posts from Stack Overflow or by minty
Published on 2009-10-13T22:43:00Z Indexed on 2010/04/08 22:53 UTC
Read the original article Hit count: 1015

When calling external processes like MSBuild cruise control sets environment variables. One of values is CCNetLabel. it holds the value of the current projects label. I want to use the same values in ccnet config itself but when I try ccnet config has a problem. I get the following error:

[CCNet Server:ERROR] INTERNAL ERROR: Reference to unknown symbol CCNetLabel
----------
ThoughtWorks.CruiseControl.Core.Config.Preprocessor.EvaluationException: Reference to unknown symbol CCNetLabel
at ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessorEnvironment._GetConstantDef(String name)
at ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessorEnvironment.eval_text_constant(String name)

.....

----------

I actually want to append the CCNetLabel to another variable so I need to access the property in ccnet.config.

is there a different way to reference these variables?

© Stack Overflow or respective owner

Related posts about ccnet-config

Related posts about cruisecontrol.net