使用GitHub Pull Request Builder触发多个Jenkins构建 [英] Trigger multiple Jenkins builds with GitHub Pull Request Builder

查看:219
本文介绍了使用GitHub Pull Request Builder触发多个Jenkins构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我有一个Jenkins作业设置,以便在为我的存储库打开拉取请求时,通过

Currently, I have a Jenkins job setup so that when a pull request is opened for my repository, a Jenkins job is automatically created via the GitHub Pull Request Builder Plugin.

当我在GitHub存储库中打开PR并让GitHub Pull Request Builder向PR报告状态时,我希望能够触发多个Jenkins作业.这是可以通过GitHub Pull Request Builder插件实现的,还是有其他可用的插件呢?我的研究使我空手而归.

I would like to be able to trigger multiple Jenkins jobs when a PR is opened in my GitHub repository and have the GitHub Pull Request Builder report the status back to the PR. Is this achievable via the GitHub Pull Request Builder plugin or are there other plugins available for this? My research has me coming up empty-handed.

推荐答案

我终于弄清楚了如何做到这一点,并且意识到我在最初的问题中没有提供足够的上下文.具体来说,我将Jenkins职位配置为GitHub Organization的一部分.单个GitHub组织仅支持一个Jenkinsfile;一个人不能将同一组织配置为使用两个单独的Jenkinsfile.因此,我在Jenkins实例中导入了相同的GitHub Organization,并将其配置为使用其他Jenkinsfile.配置完成后,这将导致在上方显示多个作业.

I finally figured out how to do this, and realized I did not provide enough context in my initial question. Specifically, I am configuring my Jenkins job as part of a GitHub Organization. A single GitHub Organization only supports one Jenkinsfile; one cannot configure the same organization to use two separate Jenkinsfile. So, I imported the same GitHub Organization in my Jenkins instance and configured it to use the other Jenkinsfile. This results in multiple jobs appearing above as you have it configured.

这篇关于使用GitHub Pull Request Builder触发多个Jenkins构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆