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

非 Y 不嫁゛ 提交于 2019-12-04 14:33:32

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.

Kinda of a kludge but could you create a project that runs on demand and does an svn cleanup?

I know you can in the Java version of CruiseControl so I assume you can do the same w/CC.NET.

You should be able to use a publisher task in the project configuration.

The Project Configuration Block has a publishers task that will execute after every build.

Using an executable task, you can pass in the current integration status as an environment variable, and that will allow you to use a simple script or command to decide whether or not to execute the svn cleanup.

For eg, all you need would be:
if %CCNetIntegrationStatus% == "Exception" svn cleanup

Disclaimer: I've only really played around with CC, and this is from the docs, not experience.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!