|
CruiseControl.NET : How to force a CCNet build from a NAnt script
This page last changed on Jan 20, 2006 by thibaut.barrere@gmail.com.
Sometimes (eg: if you want to build a list of projects in sequence) it can be convenient to trigger builds from a NAnt script. For that purpose one can use the launchccnetbuild NAnt task (source available here: LaunchCruiseControlBuildTask.cs). Example:<launchccnetbuild serverurl="tcp://buildserver:21234/CruiseManager.rem" projectname="myproject" />
The task works synchronously: it polls the server periodically to check a given project status. A build exception is raised if the build times out or is not successful (although this behavior could easily be altered). To build a list of projects sequentially and stop the script whenever one project fails to build, you can use something like : <target name="build.all"> <property name="serverurl" value="tcp://buildserver:21234/CruiseManager.rem" /> <launchccnetbuild serverurl="${serverurl}" projectname="myproject" /> <launchccnetbuild serverurl="${serverurl}" projectname="mysecondproject" /> <launchccnetbuild serverurl="${serverurl}" projectname="mythirdproject" /> </target> Configuration Elements:
|
| Document generated by Confluence on Mar 14, 2009 02:55 |