AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 888069
Accepted
papanito
papanito
Asked: 2017-12-14 23:51:51 +0800 CST2017-12-14 23:51:51 +0800 CST 2017-12-14 23:51:51 +0800 CST

Windows下的Jenkins、git-plugin和Bitbucket:身份验证失败

  • 772

我已经设置了一个私有 Bitbucket 存储库,Jenkins Git-Plugin 可以很好地访问它。当我将 repo 切换为需要身份验证时,Jenkins 抱怨

stderr: fatal: Authentication failed for 'https://bitbucket/scm/test/test.git'

我在插件中提供了具有足够权限来访问存储库的凭据。我也可以在 jenkins 服务器的命令行上成功测试。

Jenkins 中的存储库 URL:https://bitbucket/scm/test/test.git

如果我直接在存储库 url 中添加凭据,则身份验证工作正常。

https://testuser:pa $$@bitbucket/scm/test/test.git

我目前不明白凭据是如何在 jenkins 插件中传递的,所以 gitconfig 可能有问题?这是我的

[credential]
    helper = store
[core]
    editor = nano.exe
    askpass = false

任何建议如何配置 git 和 jenkins 以便我可以通过 https 使用用户身份验证(用户名和密码)?

git
  • 1 1 个回答
  • 1059 Views

1 个回答

  • Voted
  1. Best Answer
    papanito
    2017-12-15T00:11:24+08:002017-12-15T00:11:24+08:00

    事实证明,jenkins 中的用户配置错误,因此假设用户名和密码设置正确,提供 url 并且选择正确的凭据很好

    Jenkins 中的存储库 URL:https://bitbucket/scm/test/test.git

    • 0

相关问题

  • 如何使用 Gitosis 删除 Git 存储库

  • Git 和 Mercurial

  • 如何修复 git 中第一次提交的元信息?

  • 如何编辑 git 的历史记录以更正不正确的电子邮件地址/名称 [关闭]

  • git如何控制访问权限

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve