Happy to know, I'm not crazy. I couldn't figure out how to get this to
work either. I need to 'clean' my source, because it never fails that
a folder will get removed from SVN, then re-added, and for some reason
CCNet/SVN never removes the folder in the fist place.

Thanks for posting. I'm also interested in a solution to this.


On Dec 30 2008, 8:32 am, jaminto <[email protected]> wrote:
> howdy.
> we're using cruise control .net v1.4.1.3834 with svn, version 1.5.0
> (r31699)
> below is the project configuration output from the "project
> configuration" link on the ccnet web site.
> with cleanCopy is set to true, when modifications are detected, i'm
> expecting the contents of my working directory (D:\cctemp\PSmith
> \CoreServer\checkout) to be cleared, then the latest version gotten
> from svn.  this is not happening and we're constantly getting errors
> like:
> "ThoughtWorks.CruiseControl.Core.CruiseControlException: Source
> control operation failed: svn: Failed to add directory 'D:\cctemp
> \Psmith\CoreServer\checkout\ComponentConnector': an unversioned
> directory of the same name already exists."
> and we need to go to our cruise control server, delete the source
> folders, and force a new build.  Very annoying.
>
> it's my understanding that you can create a Nant task to delete the
> source folder after a build, but i'd rather not get Nant involved if
> the simple cleanCopy tag should do the job.
>
> first, is my understanding of the cleanCopy tag correct?  should it do
> what i expect?  any ideas why it's not working?
>
> Thanks.
>
> <project>
>   <artifactDirectory>D:\cctemp\PSmith\CoreServer\artifacts</
> artifactDirectory>
>   <workingDirectory>D:\cctemp\PSmith\CoreServer\checkout</
> workingDirectory>
>   <externalLinks />
>   <labeller type="defaultlabeller">
>     <incrementOnFailure>False</incrementOnFailure>
>     <labelFormat>0</labelFormat>
>     <postfix />
>     <prefix />
>   </labeller>
>   <modificationDelaySeconds>10</modificationDelaySeconds>
>   <name>Fusion - PSmith</name>
>   <prebuild />
>   <publishers>
>     <xmllogger>
>       <logDir>buildlogs</logDir>
>     </xmllogger>
>     <statistics>
>       <statisticList />
>     </statistics>
>   </publishers>
>   <queue>Fusion - PSmith</queue>
>   <queuePriority>0</queuePriority>
>   <sourcecontrol type="svn">
>     <autoGetSource>True</autoGetSource>
>     <checkExternals>False</checkExternals>
>     <checkExternalsRecursive>True</checkExternalsRecursive>
>     <cleanCopy>True</cleanCopy>
>     <executable>C:\Program Files\VisualSVN Server\bin\svn.exe</
> executable>
>     <password>*****</password>
>     <tagOnSuccess>False</tagOnSuccess>
>     <timeout>600000</timeout>
>     <trunkUrl>https://svnserver:8443/svn/PSmith/trunk/Fusion</
> trunkUrl>
>     <username>cruisecontrol</username>
>   </sourcecontrol>
>   <state type="state">
>     <directory>C:\Program Files\CruiseControl.NET\server</directory>
>   </state>
>   <tasks>
>     <devenv>
>       <buildTimeoutSeconds>1200</buildTimeoutSeconds>
>       <buildtype>Build</buildtype>
>       <configuration>Debug</configuration>
>       <executable>C:\Program Files\Microsoft Visual Studio
> 8\Common7\IDE\devenv.com</executable>
>       <project />
>       <solutionfile>Fusion.sln</solutionfile>
>       <version>VS2005</version>
>     </devenv>
>   </tasks>
>   <triggers>
>     <intervalTrigger>
>       <buildCondition>IfModificationExists</buildCondition>
>       <initialSeconds>120</initialSeconds>
>       <seconds>120</seconds>
>       <name>continuous</name>
>     </intervalTrigger>
>   </triggers>
>   <webURL>http://ccnetserver/ccnet/server/local/project/Fusion+-
> +PSmith/ViewProjectReport.aspx</webURL>
> </project>

Reply via email to