【发布时间】:2021-06-02 18:06:05
【问题描述】:
我正在为我的 Jenkins 使用 https://github.com/jenkinsci/ghprb-plugin 插件来在提出拉取请求时启动作业构建。 我得到以下错误 "无法连接到 GitHub API: org.kohsuke.github.HttpException: {"message":"Requires authentication","documentation_url":"https://docs.github.com/rest/reference/users#get-the -authenticated-user"}"
在 2 个不同的 Jenkins 上尝试了多个用户,问题仍然相同。
【问题讨论】:
-
你是使用github密码还是access token进行认证?
-
Github 用户名和密码