Search code examples
.netcruisecontrol.netccnet-config

How do you create properties in CruiseControl.Net


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


Solution

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

    <cb:define myProjectName="Foo"/>

    Then to use the defined property:

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

    More information about cb:define can be found here:

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