Jenkins Blue Ocean 插件无法连接到 GitHub

标签 jenkins jenkins-pipeline jenkins-plugins jenkins-blueocean

我正在尝试使用 Blue Ocean 创建 Jenkins 管道,但是当我尝试使用 GitHub 生成的访问 token 连接到我的 GitHub 时,没有任何反应。但是,当我检查控制台时,我收到此错误消息。有人请帮帮我。

Here is an image of the console

blueocean.js:58216 Unhandled Rejection: "Error: fetch failed: 500 for http://127.0.0.1:8090/blue/rest/organizations/jenkins/scm/github/validate/?apiUrl=https://api.github.com\n at FetchFunctions.checkStatus (http://127.0.0.1:8090/adjuncts/49720cc1/io/jenkins/blueocean/blueocean-core-js.js:54923:25)" lo
gUnhandledPromiseRejection @ blueocean.js:58216

在网络选项卡上,响应是:

  "message" : "No 'injectableValues' configured, cannot inject value with id [org.kohsuke.github.GitHubResponse$ResponseInfo]\

最佳答案

问题似乎出在我安装的 blue ocean 版本上。我降级到1.106。您可以执行以下操作来对问题进行排序。

捕获 1.106。来自 Here 的插件版本

然后去manage plugins > Advance > Upload Plugin 上传1.106插件并安装。此版本也将满足所有依赖项和间接依赖项。

更多信息请查看here

关于Jenkins Blue Ocean 插件无法连接到 GitHub,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61083892/

相关文章:

android - Jenkins Ionic 构建找不到 Gradle

linux - Jenkins 无法启动

jenkins - 是否可以为 Jenkins 文件夹中的所有项目设置一些环境变量?

git - 如何在 Jenkins 管道中使用 GitHub 提交消息和提交 ID?

svn - 轮询 Jenkins 作业中的条件 svn checkout

jenkins - 获取java.io.IOException : CreateProcess error=2, 系统找不到jenkins中指定的文件

jenkins - 从 Jenkins 声明式管道设置构建名称和描述

git - 如何获取 Jenkins 管道或多分支管道内的 SCM URL?

git - 可用选项卡中缺少 Jenkins 插件

svn - Jenkins 不会在 SCM (SVN) 外部项目变更上触发构建