成功构建后巡航控制操作?

发布于 2024-09-14 01:28:38 字数 131 浏览 1 评论 0原文

我使用 Cruisecontrol(准确地说是 phpCruiseControl)作为 CI 服务器,并让我的构建脚本自动运行。无论如何,是否可以将任务添加到 Cruisecontrol 配置脚本中,以便在成功构建后执行操作?

谢谢

I am using cruisecontrol (phpCruiseControl to be precise) as a CI server and have my build script running on an automated basis. Is there anyway to add tasks to the cruisecontrol config script to be actions upon a successful build?

Thanks

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

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

发布评论

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

评论(1

耀眼的星火 2024-09-21 01:28:38

我只有基于Java的CruiseControl的经验,所以我真的不知道phpCruiseControl是否有什么不同,但是对于“通用”CruiseControl,您可以在配置文件(通常是config.xml)中定义,您可以选择添加“发布者” 。
这些在构建完成后运行。
为了回答您的问题,您需要在配置中添加在其中的发布者部分下的元素中,您可以调用任何您喜欢的发布者。
请阅读文档了解说明。
基本上你想要这样的东西:

<cruisecontrol>
   <project>
     <publishers>
       <onsuccess>
         <antpublisher buildfile="myTasks.xml">
         ...

I only have experience with the Java based CruiseControl so I don't really know if phpCruiseControl is any different but for the "common" CruiseControl you can define in the configuration file (usually config.xml) you have the option of adding "publishers".
These run after the build completed.
In reply to your question, you need to add to the configuration an <onsuccess> element under the publishers section in it you can call whatever publisher you like.
read the documentation for the explanation.
Basically you want something like this:

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