gpt4 book ai didi

Xcode 构建自动化计划集成机器人设置

转载 作者:太空狗 更新时间:2023-10-29 12:53:14 25 4
gpt4 key购买 nike

我已经手动检查了机器人计划,定期检查新提交的轮询(它在 5 分钟内工作)所有三个选项都正常工作,但我无法理解第四个选项“使用自定义触发脚本提交”。

请任何人解释这第四个选项是如何工作的?它会在每次提交时立即集成吗?

请同时检查以下链接: http://www.likelyanswer.com/30202671/How-Do-I-Create-A-Trigger-Script-For-Bot-On-Xcode-5-Ci%3F enter image descri![enter image description here选项在这里] 1

最佳答案

这是基于我自己的调查,在未来的版本中可能完全错误。

Xcode 服务公开一个 HTTP 端点以在选择触发脚本计划选项时立即执行集成:

POST /xcs/kick-commit-bots

Parameters:

repository: URL to the repository as shown in the bot's settings.

branch: (optional) Name of the branch to trigger integrations for. If specified, only bots configured to build this branch will be integrated. If unspecified, all bots for the specified repository will be integrated.

例子:

curl http://server.local/xcs/kick-commit-bots \
-d repository=ssh://server.local/git/example.git \
-d branch=master

要使用触发脚本调度选项,您需要创建一个存储库 Hook 以在收到新提交时触发此端点。 OS X Server 在 /Applications/Server.app/Contents/ServerRoot/usr/share/collabd/server/ruby/kick_build_bot.rb 中包含一个示例 Hook 。对于通过 Xcode 服务创建的托管 Git 存储库,系统会自动为您创建一个使用此脚本的接收后 Hook 。

请注意,发送到 /xcs/kick-commit-bots 的存储库 URL 必须与网络界面中机器人设置中显示的存储库 URL 匹配。对于托管存储库,URL 似乎可以更改 - 有时使用 ssh: URL,有时使用 file: URL。

关于Xcode 构建自动化计划集成机器人设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23674117/

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