Pre-build task - deleting the working copy in CruiseControl.NET

后端 未结 5 1950
清歌不尽
清歌不尽 2021-01-12 05:13

I\'m currently in the process of setting up a continuous integration environment at work. We are using VisualSVN Server and CrusieControl.NET. Occasionally a build will fail

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-12 05:59

    Doing a full delete before or after your build is good practice. This means that there is no chance of your build environment picking up an out of date file. Your building exactly against what is in the repository.

    Deleting the working copy is possible as I have done it with Nant.

    In Nant I would have a clean script in its own folder outwith the one I want to delete and would then invoke it from CC.net.

    I assume this should also be possible with a batch file. Take a look at the rmdir command http://www.computerhope.com/rmdirhlp.htm

    @pauldoo

    I prefer my CI server to do a full delete as I don't want any surprise when I go to do a release build, which should always be done from a clean state. But it should be able to handle both, no reason why not

提交回复
热议问题