R – Handling svn locks / cleanup when using CruiseControl .NET and Subversion

cruisecontrolsvn

I am using CruiseControl .NET with the Subversion source control plugin to automatically build our project.

Some of the projects are automatically checking for modifications, but occasionally the check fails and CruiseControl .NET marks the project with an "Exception":

ThoughtWorks.CruiseControl.Core.CruiseControlException: Source control operation failed: svn: Working copy 'xxFilename' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

After this I must manually log into the server and do a svn cleanup on the folder before the project will build again. Is there a workaround for this?

Best Answer

The new Cruise Control.Net 1.4.4 server has two additional properties on the Subversion Source Control Block.

See CCNET Documentation - Subversion Source Control Block

The cleanUp and revert properties does what you want.