Jenkins blue ocean change github access token

不打扰是莪最后的温柔 提交于 2019-12-22 04:32:42

问题


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

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.

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?


回答1:


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.




回答2:


I tried many things, at the moment best solution is to delete project and create new blueocean project with new credentials.




回答3:


Add a new credential in Jenkins and choose "Username and Password" as the type. The username should be your GitHub username and the password is the API token. Make sure the credential is added to a store that the project has access to.



来源:https://stackoverflow.com/questions/45187250/jenkins-blue-ocean-change-github-access-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!