问题
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:
- Go to the 'old' interface (i.e. not Blue Ocean)
- Click on your username in the top right
- 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