【问题标题】:understanding Cruise Control .NET continuous integration了解 Cruise Control .NET 持续集成
【发布时间】:2011-04-13 04:52:23
【问题描述】:

我想在我的存储库中的文件更改后运行任务/构建。 当我配置“间隔触发器”时:buildCondition="IfModificationExists", 尽管我更改了文件并进行了提交,但任务没有执行。 日志写道:未检测到修改。 如何在文件更改后运行任务? 谢谢, 耶嗨

【问题讨论】:

  • 你有源代码控制块吗?
  • 这是我的 ccnet.config:SimpleExamplelocalhost:8000</repo> c:\mercuRepoC:\work C:\work\project1CCnetArtifacts c:\calc.bat
  • 很抱歉这个烂摊子。没有与源代码管理的任何连接,当我进行“强制构建”时,任务会发生,但在“ifModificationExist”上,任务不会执行

标签: cruisecontrol.net


【解决方案1】:

如您在此处看到的,Mercurial 源代码控制中有一个错误: CruiseControl.NET's Filtered Source Control Provider Not Detecting Modifications When Using Mercurial http://groups.google.com.ag/group/ccnet-user/browse_thread/thread/23cc02e1258a63ec

否则,您的配置似乎是正确的,只是您的源代码控制块中没有登录信息。

【讨论】:

    【解决方案2】:

    以个人身份执行以下操作:

    <triggers>
    <intervalTrigger initialSeconds="0" /> 1
    </triggers>
    <sourcecontrol type="<type here>">
    

    因为它会轮询源代码控制系统,然后仅在有更改时才构建

    请试试看

    【讨论】:

    • 感谢您的回答.. 我试过了,但它没有执行任务(就像我强制构建时一样),尽管我可以看到它在 ccnet.log 文件中识别出我的更改。也许任务与构建不同?
    猜你喜欢
    • 2010-12-03
    • 2014-03-09
    • 1970-01-01
    • 2013-03-09
    • 1970-01-01
    • 1970-01-01
    • 2010-09-09
    • 2013-01-02
    • 1970-01-01
    相关资源
    最近更新 更多