CruiseControl.net changes Working Directory for SVN checkout when using filters -
i have strange problem. trying implement filter svn versioninfo.txt
file gets checked in during build. using cc.net 1.6 on windows xp sp3
below xml code:
with filtered tag commented out, code executes correctly , files checked out. filtered tag comment tags removed, following error:
"source control operation failed: svn: e155007: 'c:\build\amazingcharts\working\checkout' not working copy"
notice path above stops @ checkout
when should contain module1 or module2 specified in working directory. somehow when specify filter, working directory in svn tags ignored , seems use global working directory.
how around this? have been combing through 1.6 xsd hours , stumped on how fix this.
<sourcecontrol type="multi"> <sourcecontrols> <svn> <executable>$(svn_path)</executable> <trunkurl>$(subversion_url2)</trunkurl> <workingdirectory>$(checkout_abs_dir)\module2</workingdirectory> <timeout units="hours">2</timeout> <username>$(svn_user)</username> <password>$(svn_pwd)</password> <autogetsource>true</autogetsource> </svn> <svn> <executable>$(svn_path)</executable> <trunkurl>$(subversion_url1)</trunkurl> <workingdirectory>$(checkout_abs_dir)\module1</workingdirectory> <timeout units="hours">1</timeout> <username>$(svn_user)</username> <password>$(svn_pwd)</password> <autogetsource>true</autogetsource> </svn> <!-- <filtered> <sourcecontrolprovider type="svn"></sourcecontrolprovider> <exclusionfilters> <pathfilter> <pattern>**/versioninfo.txt</pattern> </pathfilter> </exclusionfilters> <inclusionfilters></inclusionfilters> </filtered>--> </sourcecontrols> </sourcecontrol>
i figured out misunderstanding of syntax. trying add filtered modification of svn. here working. wish find stackoverflow page pointed me in right direction on gave me clarity on this. helps else other page did me. not clear how supposed handle multi source control types.
<sourcecontrol type="multi"> <sourcecontrols> <multi> <sourcecontrols> <filtered> <sourcecontrolprovider type="svn" autogetsource="false"> <executable>$(svn_path)</executable> <workingdirectory>$(checkout_abs_dir)\module2</workingdirectory> <timeout units="hours">2</timeout> <trunkurl>$(subversion_url2)</trunkurl> </sourcecontrolprovider> <exclusionfilters> <pathfilter> <pattern>**/versioninfo.txt</pattern> </pathfilter> </exclusionfilters> </filtered> <filtered> <sourcecontrolprovider type="svn" autogetsource="false"> <executable>$(svn_path)</executable> <workingdirectory>$(checkout_abs_dir)\module1</workingdirectory> <timeout units="hours">2</timeout> <trunkurl>$(subversion_url1)</trunkurl> </sourcecontrolprovider> <exclusionfilters> <pathfilter> <pattern>**/versioninfo.txt</pattern> </pathfilter> </exclusionfilters> </filtered> </sourcecontrols> </multi> </sourcecontrols> </sourcecontrol>
Comments
Post a Comment