I have been trying to get Dynamic Parameters to work all afternoon, but have not yet been successful.
I am trying to follow the "Defining a Build Target" example in http://confluence.public.thoughtworks.org/display/CCNET/Dynamic+Paramete rs. I have a SelectParameter defined in my ccnet.config file as follows: <project name="IMSRma-Test"> <parameters> <selectParameter name="buildType"> <description>The type of build to perform</description> <allowedValues> <value name="Development">Dev</value> <value name="Integration">Integration</value> <value name="Release">Release</value> </allowedValues> </selectParameter> </parameters> When I force a build on this project in the dashboard, I get a dropdown with the three choices. That works fine. What I cannot seem to get is passing the selected buildType to my build file. Following the parameters definition in the ccnet.config file, I have my triggers, sourcecontrol block, labeller block, and prebuild block. Finally I have my nant task as follows: <tasks> <nant> <executable>C:\Program Files\nant\bin\nant.exe</executable> <baseDirectory>C:/BuildArea/IMSRma-Test</baseDirectory> <nologo>false</nologo> <buildFile>C:\Program Files\CruiseControl.NET\server\config\cc_build_imsrma-test.xml</buildFil e> <targetList> <target>$[buildType|Dev]</target> </targetList> <buildTimeoutSeconds>1200</buildTimeoutSeconds> </nant> </tasks> In my build file (cc_build_imsrma-test.xml), I have defined targets 'Dev', 'Integration', and 'Release'. When I force a build from the dashboard, it doesn't matter what I select, the target initiated is always 'Dev'. I have also tried removing the default 'Dev' target ($[buildType]) - when I tried this, then no target gets called in my build script (presumably b/c I don't have a default target defined). Is there something else I am missing to get this to work? I am using v1.5.0.6299 of cc.net, and the latest nighly build of NAnt ((Build 0.86.3412.0; nightly; 5/5/2009)) Thanks, Beth --------------------------------------------------------------------------- This email and any files transmitted with it are confidential & proprietary to Systems and Software Enterprises, Inc. (dba IMS). This information is intended solely for the use of the individual or entity to which it is addressed. Access or transmittal of the information contained in this e-mail, in full or in part, to any other organization or persons is not authorized. ---------------------------------------------------------------------------
