首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >github拉出请求生成器不工作

github拉出请求生成器不工作
EN

Stack Overflow用户
提问于 2015-09-10 12:06:54
回答 1查看 8.5K关注 0票数 2

Jenkins错误日志

代码语言:javascript
复制
Sep 10, 2015 11:26:55 AM org.jenkinsci.plugins.ghprb.GhprbTrigger stop
INFO: Stopping the ghprb trigger for project abc
Sep 10, 2015 11:26:55 AM org.jenkinsci.plugins.ghprb.GhprbTrigger start
INFO: Starting the ghprb trigger for the abc job; newInstance is true
Sep 10, 2015 11:26:55 AM org.jenkinsci.plugins.ghprb.GhprbGitHubAuth getBuilder
WARNING: credentialsId not set for context abc, using anonymous connection
Sep 10, 2015 11:26:57 AM org.jenkinsci.plugins.ghprb.GhprbRepository initGhRepository
SEVERE: Could not retrieve GitHub repository named organization/abc (Do you have properly set 'GitHub project' field in job configuration$
java.io.FileNotFoundException: {"message":"Not Found","documentation_url":"https://developer.github.com/v3"}

在“生成触发器”部分下的配置设置中,我检查了“当更改被推送到Github”和"Github拉请求生成器“时生成。我还检查了“使用github钩子进行构建触发”

在"Manage“->”配置系统“”-> "Github拉请求生成器“下,我已经在”凭据“字段中设置了自动生成的凭据。

我已经在github上安装了webhooks,并且它对于任何被推入存储库的更改都可以正常工作,但是不工作于拉请求。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-10 13:15:03

我认为自动生成的凭据不起作用。

代码语言:javascript
复制
WARNING: credentialsId not set for context abc, using anonymous connection

您需要在GitHub (https://github.com/settings/tokens)上生成一个令牌。默认作用域应提供必要的权限。然后,在全局Jenkins拉请求生成器配置中,使用GitHub用户名和生成的令牌添加新凭据。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32501446

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档