3

I'm trying to create a Jenkins pipeline using Blue Ocean but when I try to connect to my GitHub using the GitHub generated access token, nothing happens. However, when I check the console, I get this error message. Someone please help me out.

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

At the network tab, the response is:

  "message" : "No 'injectableValues' configured, cannot inject value with id [org.kohsuke.github.GitHubResponse$ResponseInfo]\
Hesbon
  • 81
  • 1
  • 2
  • 7
  • 1
    I have the same problem with a Jenkins instance I installed today. The error coming back from the web service call is.`No 'injectablevalues' configured` – Travis Smith Apr 07 '20 at 19:55
  • Yeah I can see the same error from the network tab – Hesbon Apr 08 '20 at 04:42
  • Have you managed to fix it? – Hesbon Apr 08 '20 at 04:42
  • 2
    There's an issue on JIRA. Someone got it working by downgrading Github API, but I haven't tried it myself: https://issues.jenkins-ci.org/browse/JENKINS-61822?focusedCommentId=388713&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-388713 – Travis Smith Apr 08 '20 at 17:43

2 Answers2

2

It seems the issue was with the version of blue ocean I had installed. I downgraded to 1.106. You can do the following to sort the issue.

Grab the 1.106. version of the plugin from Here

Then go to manage plugins > Advance > Upload Plugin and upload the 1.106 plugins and install it. All dependencies and indirect dependencies will also be satisfied with this version.

For more information check here

Hesbon
  • 81
  • 1
  • 2
  • 7
0

Downgrading GitHub API to 1.106 worked for me.

Afsal
  • 404
  • 3
  • 7
  • 24