2
我有巡航控制服務器運行併成功地構建我的項目。但是,我的間隔觸發器(設置爲IfModificationExists)每次嘗試構建時都將數據庫歷史記錄中的整個更改列表註冊爲修改,因此無論是否存在新提交,都會在每個時間間隔上進行構建。有什麼建議麼?下面是我的配置文件中的相關內容:cruise control.NET perforce所有提交都是修改
<cruisecontrol>
<project name="MyProj">
<artifactDirectory>C:\CCNet\Artifacts\</artifactDirectory>
<!-- TRIGGER THE CHECK TO BUILD EVERY HOUR -->
<triggers>
<!-- check the source control every X time for changes,
and run the tasks if changes are found -->
<intervalTrigger
name="continuous"
seconds="3600"
buildCondition="IfModificationExists"
initialSeconds="5"/>
</triggers>
<workingDirectory>C:\PerforceFiles\</workingDirectory>
<!-- CHECK FOR CHANGES IN PERFORCE, EXCLUDE .CHM FILES SINCE THEY ARE CHECKED IN AS PART OF THIS BUILD -->
<sourcecontrol type="filtered">
<sourceControlProvider type="p4">
<view>//depot/Folder1/... //cruisecontrol_server/Folder1/..., //depot/Folder2/... //cruisecontrol_server/Folder2/..., //depot/Folder3/... //cruisecontrol_server/Folder3/..., //depot/Folder4/... //cruisecontrol_server/Folder4/...</view>
<executable>C:\Program Files\Perforce\p4.exe</executable>
<workingDirectory>C:\PerforceFiles</workingDirectory>
<client>cruisecontrol_server</client> <!-- this workspace's tree is equivalent to the view listed above -->
<user>cruisecontrol</user>
<port>myPort</port>
<applyLabel>false</applyLabel>
<autoGetSource>true</autoGetSource>
<forceSync>false</forceSync>
</sourceControlProvider>
<exclusionFilters>
<pathFilter>
<pattern>/**/*.chm</pattern>
</pathFilter>
</exclusionFilters>
</sourcecontrol>
該文件的剩餘部分只是我的任務和出版商,我不覺得這是相關的。如果您需要更多信息,請告訴我,我會盡快回復。
你在哪裏排除.CHM文件?你需要使用** Filtered Source Control Block ** - > [link](http://cruisecontrolnet.org/projects/ccnet/wiki/Filtered) – Luciano
如果你只是提到評論,那是一個遺物從CruiseControl示例中,我基於此文件。我恢復了.chm刪除,但它仍然給我完全相同的問題。 – Rheibaen