带有GitHub Trigger(GitHub插件)的Jenkins:如何使用其他分支(除了Master/Main)?
描述:
我试图让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
But when I change it to other branch like 'develop', It does not work.
Is there additional configuration to use other branches?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,输入接受正则表达式。初始指定的分支为“*/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