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

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

问题描述

当我尝试在 Jenkins 常规配置中配置 GitHub 服务器以设置 webhooks 自动时,我遇到了以前从未发生过的非常奇怪的行为.

I got very strange behavior that has never happened before, when I try to configure the GitHub server in Jenkins general configuration to set up webhooks auto.

下拉菜单不显示我注册的凭据.我总是能够做到这一点,但突然间我不知道发生了什么.我试图卸载插件,重新启动 Jenkins,杀死 Jenkins Docker 容器并再次配置所有东西......我仍然遇到同样的问题.

The drop down menu doesn't display my registered credentials. I was always be able to do that, but suddenly I don't know what's happening. I tried to uninstall the plugin, restarting Jenkins, kill the Jenkins Docker container and configure all the stuff again ... still I got 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 插件 只接受纯文本凭据.

The issue is that the GitHub plugin only accepts plain text credentials.

GitHub 访问令牌可以手动创建,也可以通过高级...选项自动创建,如此处.

The GitHub access token can be created manually, or automatically via the Advanced... options as described here.

如果您已经在 GitHub 中拥有访问令牌(您将在 Jenkins 中收到错误),您可以删除它在 Github 中.然后就可以让Jenkins生成token,在Credentials菜单中选择.

In case you already have an access token in GitHub (you'll get an error in Jenkins), you can remove it in Github. Then you can let Jenkins generate the token and select it in the Credentials menu.

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

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