带有GitHub Trigger(GitHub插件)的Jenkins:如何使用其他分支(除了Master/Main)?

发布于 2025-01-21 05:42:56 字数 321 浏览 2 评论 0原文

描述:

我试图让GitHub Webhook触发我的Jenkins Job。我成功地使用主要分支触发了作业,但是使用其他分支机构没有成功。我有一个名为“开发”的新分支,但并没有触发工作。

当前设置:

在詹金斯,我正在使用管道 - > SCM的管道脚本。

在SCM下,我的存储库是定义的,它可以访问主分支pr

还有其他分支的配置吗?

Description:

I am trying to have Github webhook to trigger my Jenkins job. I am successful in triggering the job using the Main branch but no success using other branches. I have a new branch called 'develop' but it does not trigger the job.

Current Setup:

In Jenkins, I am using Pipeline -> Pipeline Script from SCM.

Under SCM, My repository is defined and it can access Main branch pr

enter image description here

But when I change it to other branch like 'develop', It does not work.

Is there additional configuration to use other branches?

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

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

发布评论

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

评论(1

笑看君怀她人 2025-01-28 05:42:56

显然,输入接受正则表达式。初始指定的分支为“*/Master”。因此,我用“*/开发”来触发我的詹金斯作业

Apparently, the input is accepting Regular Expression. The initial specified branch is '*/master'. Therefore, I used '*/develop' to trigger my Jenkins job for develop branch

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