Jenkins blue ocean change github access token

Ivan Talalaev picture Ivan Talalaev · Jul 19, 2017 · Viewed 11k times · Source

Jenkins blue ocean pretty cool continuous integration tool, but I faced the following problem:

At the main page, as was asked, I inserted my GitHub access token

jenkins generate access token

And after that I realized that was incorrect token from another company.
And now I want to change to another token but there is no option to do that. I'm always getting the following screen without the possibility to change the key.

no way to change github access token

I found out that if I the token was deleted from GiHub tokens page I can insert the new one at the page depicted above. But now there is no way to delete that token. I need to resolve the problem from Jenkins UI.

Any Ideas how to change?

Answer

tkausl picture tkausl · Jul 19, 2017

Steps to delete the Access-Token:

  1. Go to the 'old' interface (i.e. not Blue Ocean)
  2. Click on your username in the top right
  3. Click on Credentials on the left

You should see a entry with the domain blueocean-github-domain the id github and the name <username>/****** (Github Access Token). Delete it.

Afterwards, BlueOcean will ask for an Access Token again, when using "Github" as source.