How to create properties in CruiseControl.Net

In ant scripts and MS build files you can set properties at the top, how to do it in CruiseControl ccnet.config file?

+2


source to share


2 answers


You can do this with cb: define. For example:

<cb: define myProjectName = "Foo" />

Then to use a specific property:



<project name = "$ (myProjectName)" queue = "Bar"> </ project>

More information on cb: define can be found here:

http://confluence.public.thoughtworks.org/display/CCNET/Configuration+Preprocessor

+9


source


<cb:define />

creates a preprocessor constant, not a property. Preprocessor constants are globally scoped and can only be specified once. The property will be bound to the block in which it was created and can be overloaded with the same name in another block. You can use the tag <cb:scope>

to change the scope of preprocessing constants and mock properties as shown below:



CruiseControl.NET: configuration preprocessor

+3


source







All Articles