gpt4 book ai didi

continuous-integration - 成功构建后的 Cruisecontrol 操作?

转载 作者:行者123 更新时间:2023-12-01 10:13:32 25 4
gpt4 key购买 nike

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

谢谢

最佳答案

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

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

关于continuous-integration - 成功构建后的 Cruisecontrol 操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3440717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com