CruiseControl.net-如何在构建过程中检入代码 [英] CruiseControl.net -- How to checkin code during the build

查看:53
本文介绍了CruiseControl.net-如何在构建过程中检入代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置CruiseControl.NET,在构建过程中,我想修改我的version.txt文件并签入。当我这样做时,CruiseControl.NET不知道此签入是由构建和因此,下一次它检查源代码时,会看到有修改并重新构建(我在项目构建中设置了IfModificationExists)。如何告诉CruiseControl.NET检入此文件或让它知道该文件是正常的,因此它不会一直重新触发构建?

I'm setting up CruiseControl.NET and during the build I want to modify my version.txt file and have it checked in. When I do this, CruiseControl.NET doesn't know this checkin was done by the build and so the next time it checks sources, it sees there were modifications and rebuilds again (I have IfModificationExists set in the project build). How do I tell CruiseControl.NET to check this file in or let it know that this one is OK so it doesn't keep re-triggering builds?

推荐答案

您可以在项目中使用exclusionFilters从触发生成中排除version.txt文件。

You can use exclusionFilters in the project to exclude the version.txt file from triggering a build.

<sourcecontrol type="filtered">
    <sourceControlProvider type="svn">
       ...        
    </sourceControlProvider>
    <exclusionFilters>
        <pathFilter>
            <pattern>**/Version.txt</pattern>
        </pathFilter>
    </exclusionFilters>
</sourcecontrol>

文档位于:

< a href = http://www.cruisecontrolnet.org/projects/ccnet/wiki/Filtered rel = nofollow noreferrer> http://www.cruisecontrolnet.org/projects/ccnet/wiki/Filtered

这篇关于CruiseControl.net-如何在构建过程中检入代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆