使用 Ant for CruiseControl.NET 配置计划块时检测到未使用的节点

发布于 2024-11-09 12:30:04 字数 2846 浏览 3 评论 0原文

我正在为 CruiseControl.net 开发一个调用 Ant 脚本的 ccnet.config 脚本,但在执行 CruiseControl.NET 服务时出现以下错误:

错误:“检测到未使用的节点:计划块”

这是我的 ccnet。配置:

<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="[email protected]" includeDetails="true">
        <users>
          <user name="BuildGuru" group="buildmaster" address="[email protected]"/>
          <user name="JoeDeveloper" group="developers" address="[email protected]"/>
        </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>

I'm developing a ccnet.config script for CruiseControl.net that invokes an Ant script, and I'm getting the following error while executing the CruiseControl.NET service:

Error: "Unused node detected:schedule block"

This is my 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="[email protected]" includeDetails="true">
        <users>
          <user name="BuildGuru" group="buildmaster" address="[email protected]"/>
          <user name="JoeDeveloper" group="developers" address="[email protected]"/>
        </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>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒江雪… 2024-11-16 12:30:04

“project”元素下没有可用的“schedule”元素: http: //confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block

There is no "schedule" element available under the "project" element: http://confluence.public.thoughtworks.org/display/CCNET/Project+Configuration+Block

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文