Jenkins Github插件无法选择我的凭据 [英] Jenkins Github Plugin can't choose my credentials

查看:1623
本文介绍了Jenkins Github插件无法选择我的凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前从未发生过的非常奇怪的行为,当我尝试在Jenkins一般配置中配置Github服务器以设置webhooks自动时,下拉菜单不显示我注册的凭据,我总是能够做到这一点突然,我不知道发生了什么,我试图卸载插件,重新启动Jenkins,杀死Jenkins码头集装箱,再次配置所有的东西..仍然是一样的问题。

Very strange behavior that has never happened before, when I try to configure Github server in Jenkins general configs to set up webhooks auto, the drop down menu don't displays my registered credentials, I was always be able to do that but suddenly I don't know what's happens, I tried to uninstall the plugin, restarting Jenkins, kill the Jenkins docker container a configure all the stuff again .. still the same Issue.

除了没有其他选项以外,没有其他选项,当我添加新凭据时,我仍然没有作为唯一的选项..

there is no other option other than none, and when I add new credentials I still get none as the only option ..

推荐答案

问题是Github插件只接受纯文本凭据( https://wiki.jenkins-ci.org/display/JENKINS/Pla in + Credentials + Plugin )。

The issue is that the Github plugin only accepts plain text credentials (https://wiki.jenkins-ci.org/display/JENKINS/Plain+Credentials+Plugin).

Github访问令牌可以手动创建,也可以通过Advanced ...选项自动创建,如下所述: https://wiki.jenkins-ci.org/display / JENKINS / GitHub + Plugin#GitHubPlugin-AutomaticMode%28Jenkinsmanageshooksforjobsbyitself%29

The Github access token can be created manually, or automatically via the Advanced... options as described here: https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin#GitHubPlugin-AutomaticMode%28Jenkinsmanageshooksforjobsbyitself%29

如果您已经在Github中有访问令牌(您将收到错误在Jenkins),您可以在Github中删除它: https://github.com/settings/tokens

In case you already have an access token in Github (you'll get an error in Jenkins), you can remove it in Github: https://github.com/settings/tokens

然后,您可以让Jenkins生成令牌并在凭据菜单中选择它。

Then you can let Jenkins generate the token and select it in the Credentials menu.

这篇关于Jenkins Github插件无法选择我的凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆