gpt4 book ai didi

Jenkins:用于 GITScm 轮询的 GitHub 钩子(Hook)触发器

转载 作者:行者123 更新时间:2023-12-04 12:16:45 27 4
gpt4 key购买 nike

我尝试配置 Jenkins 。我想要一个简单的行为:根据新的拉取请求触发构建。

因此,我创建了一个作业并对其进行了配置,但我选中了以下复选框:
enter image description here

正如你所看到的,没有任何东西被丢弃。

如果我单击右侧的问号,我会看到:

If jenkins will receive PUSH GitHub hook from repo defined in Git SCM section it will trigger Git SCM polling logic. So polling logic in fact belongs to Git SCM.



但是“Git SCM 部分”在哪里?

最佳答案

您需要在 GitHub 存储库上配置 webhook。然后,在每次提交推送时,都会通知 Jenkins。
因此,在浏览器中打开您的存储库,然后转到 Settings > Webhooks并添加一个新的。
enter image description here
然后,输入您的 Jenkins 实例的 URL,后跟 /github-webhook并根据您的需要选择其他选项:
enter image description here

关于Jenkins:用于 GITScm 轮询的 GitHub 钩子(Hook)触发器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48093039/

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