CC.NET:当 svn 中的子目录发生更改时如何触发扩展构建
我们在 cc.net 中配置了几个项目。每个项目的工作目录 (svn) 中都有以下项目:
- 源
- lib
- db 脚本
- SSIS 包
我们想知道是否有办法查明包含 SSIS 包的子目录中是否有任何修改?这将使我们能够进行完整的构建(包括包的执行)。我们不想对每个构建都执行此操作,因为包执行可能需要一些时间...
我们的另一个选择是创建一个 cc.net 项目,在夜间完成完整的构建。
有人对这个问题有好的解决办法吗?
We have a couple of projects configured in cc.net. Each of these projects has following items in it's working directory (svn):
- source
- lib
- db scripts
- SSIS package(s)
We would like to know if there is a way to find out if there are any modifications in the subdirectory containing the SSIS packages? This would allow us to do a full build (including execution of package). We don't want to do this with every build since package execution might take some time...
Our other option is to create a cc.net project that does the complete builds at night time.
Does anybody have a nice solution to this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将使用 MSBuild 社区任务中的 SvnVersion 任务来识别 SSIS 包子目录中的最新版本。然后将其与您存储在工作目录或其他地方的文件中的文件进行比较。
如果不同,请将属性传递给主 MSBuild 任务,并带有指示生成和执行 SSIS 包的标志。完成后,使用 SSIS 子目录的新修订版号更新修订版文件。
I would use the SvnVersion task from MSBuild Community Tasks to identify the latest revision on the SSIS package subdirectory. Then compare it to one you've stored in a file somewhere in your working directory or elsewhere.
If it's different, pass a property to your main MSBuild task with a flag instructing to build and execute the SSIS packages. Once that's done, update your revision file with the new new revision number for the SSIS subdir.