|
CruiseControl.NET : Multi Source Control Block
This page last changed on Jul 12, 2010 by ccnet-doc-gen.
Multi Source Control BlockYou can use the 'Multi' Source Control plugin to check for modifications from any number of source control repositories. You may want to do this if (for example) you want to build if the source for your project changes, or if the binaries your project depends on change (which may be stored on a file server). VersionAvailable from version 1.0 Examples<sourcecontrol type="multi"> <sourceControls> <filesystem> <!-- Check for changes in the latest 1.2 version of the server... --> <repositoryRoot>\\DistributionFileServer\Server\1.2.latest</repositoryRoot> </filesystem> <cvs> <!-- ...or in the source of the client project --> <executable>c:\tools\cvs-exe\cvswithplinkrsh.bat</executable> <workingDirectory>c:\localcvs\myproject\client</workingDirectory> </cvs> </sourceControls> </sourcecontrol> Configuration Elements
NotesNote that, due to the way the configuration gets parsed, if you are using a "multi" block, then the items within the <sourceControls> element should not be <sourcecontrol> elements (as you may expect). Instead, the name of the element should be the same as you would put in the "type" attribute when using a <sourcecontrol> element. <sourcecontrol type="cvs"> <executable>c:\tools\cvs-exe\cvswithplinkrsh.bat</executable> <workingDirectory>c:\localcvs\myproject\client</workingDirectory> </sourcecontrol> But inside a <sourcecontrol type="multi"< element, this becomes: <sourcecontrol type="multi"> <sourceControls> <cvs> <executable>c:\tools\cvs-exe\cvswithplinkrsh.bat</executable> <workingDirectory>c:\localcvs\myproject\client</workingDirectory> </cvs> </sourceControls> </sourcecontrol>
|
| Document generated by Confluence on Jan 23, 2011 08:52 |