调用 MSBuild 巡航控制等外部进程时会设置环境变量。值之一是 CCNetLabel。它保存当前项目标签的值。我想在 ccnet config 本身中使用相同的值,但是当我尝试 ccnet config 时出现问题。我收到以下错误:
[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)
.....
----------
我实际上想将 CCNetLabel 附加到另一个变量,所以我需要访问 ccnet.config 中的属性。
有没有不同的方法来引用这些变量?