我正在为 CruiseControl.net 开发一个调用 Ant 脚本的 ccnet.config 脚本,但在执行 CruiseControl.NET 服务时出现以下错误:
错误:“检测到未使用的节点:计划 block ”
这是我的 ccnet.config:
<cruisecontrol xmlns:cb="urn:ccnet.config.builder" xmlns="http://thoughtworks.org/ccnet/1/5">
<project name="testprj">
<webURL>http://localhost/ccnet</webURL>
<modificationDelaySeconds>10</modificationDelaySeconds>
<sourcecontrol type="cvs" autoGetSource="true">
<executable>C:\dev\ccnet\ccnet\tools\cvs.exe</executable>
<cvsroot>:ext:exortech@ccnet:/cvsroot/ccnetcontrib</cvsroot>
<module>ccnet</module>
<workingDirectory>C:\dev\Copy of FAT\</workingDirectory>
<webUrlBuilder type="viewcvs">
<url>http://localhost:7899/viewcvs/ccnet/NUnitDemo/</url>
</webUrlBuilder>
</sourcecontrol>
<schedule>
<ant>
<antscript>C:\Apache\apache-ant-1.8.1\bin\ant.bat</antscript>
<antworkingdir>C:\Apache</antworkingdir>
<buildfile>internalpush.xml</buildfile>
<uselogger>true</uselogger>
<usedebug>false</usedebug>
</ant>
</schedule>
<publishers>
<merge>
<files>
<file>C:\dev\ccnet\ccnet\build\ccnet.exe-results.xml</file>
</files>
</merge>
<xmllogger>
<logDir>log</logDir>
</xmllogger>
<email mailhost="foo" from="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d6a5a4b3b3bdb7b8a2be96b0b9b9f8b5b9bb" rel="noreferrer noopener nofollow">[email protected]</a>" includeDetails="true">
<users>
<user name="BuildGuru" group="buildmaster" address="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9bf9eef2f7fffceee9eedbf6e2f8f4f6ebfaf5e2b5f8f4f6" rel="noreferrer noopener nofollow">[email protected]</a>"/>
<user name="JoeDeveloper" group="developers" address="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="acc6c3c9c8c9dac9c0c3dcc9deecd8c4c3d9cbc4d8dbc3dec7df82cfc3c1" rel="noreferrer noopener nofollow">[email protected]</a>"/>
</users>
<groups>
<group name="developers">
<notifications>
<NotificationType>Change</NotificationType>
</notifications>
</group>
<group name="buildmaster">
<notifications>
<NotificationType>Change</NotificationType>
</notifications>
</group>
</groups>
</email>
</publishers>
</project>
</cruisecontrol>
最佳答案
“project”元素下没有可用的“schedule”元素:http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block
关于cruisecontrol.net - 使用 Ant for CruiseControl.NET 配置计划 block 时检测到未使用的节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6134696/