简体   繁体   English

配置GitHub Pull Request Builder插件

[英]Configuring GitHub Pull Request Builder Plugin

I have been trying to set up to GitHub Pull Request Builder Plugin for a while now. 我已经尝试设置GitHub Pull Request Builder插件一段时间了。 But when I submit a pull request to my repo, nothing happens when I comment a phrase like 'test this please'. 但是,当我向我的仓库提交请求请求时,当我评论“请测试一下”这样的短语时,什么也不会发生。 Connections and repo permissions the bot user has seem to show up fine in Jenkins. 僵尸用户在Jenkins中似乎很好地显示了连接和回购权限。 I tried posting a comment on an issue through Jenkins just to make sure if I have done a correct setup, this throws errors.I have done the basic setup, but obviously there is something missing. 我试图通过Jenkins发布关于一个问题的评论,只是为了确保我是否进行了正确的设置,这会引发错误。我已经完成了基本设置,但显然缺少一些东西。 Can someone please help me do the setup? 有人可以帮我安装吗? Some questions that I have are: 我有一些问题:

  • What is the difference between admin and botuser as mentioned in the documentation? 文档中提到的admin和botuser有什么区别?
  • Does a whitelist user not have to post a comment phrase to trigger the build?(does not work for me either way). 白名单用户是否不必发布评论短语即可触发构建?(对我都不起作用)。

Would appreciate any help. 将不胜感激。 Have been stuck for 2 days. 已经卡了2天了。

Check the configuration of your pull request builder using the following steps: 使用以下步骤检查拉取请求构建器的配置:

  1. Go to Github -> repository settings -> webhooks & services and check that there a webhook configured that calls Jenkins on /ghprbhook, content-type application/x-www-form-urlencoded. 转到Github->存储库设置-> webhooks和服务,并检查是否配置了一个Webhook,该Webhook在内容类型为application / x-www-form-urlencoded的/ ghprbhook上调用Jenkins。
  2. In the list of events in the Github trigger configuration, make sure that the 'pull request' and 'issue comment' events are checked. 在Github触发器配置中的事件列表中,确保已选中“ pull request”和“ issue comment”事件。
  3. In the Jenkins job configuration, verify that "Use github hooks for build triggering" is checked and make sure that the 'Trigger phrase' is set up correctly. 在Jenkins作业配置中,验证是否已选中“使用github挂钩进行构建触发”,并确保正确设置了“触发短语”。 We use \\Qok to test\\E . 我们使用\\Qok to test\\E

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM