【问题标题】:Bamboo + Git Azure DevOps = "fatal: Could not read from remote repository.". For Git SubmoduleBamboo + Git Azure DevOps =“致命:无法从远程存储库读取。”。对于 Git 子模块
【发布时间】:2020-07-18 12:31:04
【问题描述】:

我尝试从 DevOpsAzure 的 Git 存储库中签出 Bamboo,然后查看下一个:

simple  18-Jul-2020 15:11:55    Submodule '***' (***) registered for path '***'
simple  18-Jul-2020 15:11:55    Cloning into '***'...
simple  18-Jul-2020 15:11:55    Warning: Permanently added 'vs-ssh.visualstudio.com,**IP**' (RSA) to the list of known hosts.
simple  18-Jul-2020 15:11:56    remote: Public key authentication failed.
simple  18-Jul-2020 15:11:56    fatal: Could not read from remote repository.
simple  18-Jul-2020 15:11:56    
simple  18-Jul-2020 15:11:56    Please make sure you have the correct access rights
simple  18-Jul-2020 15:11:56    and the repository exists.

子模块配置为 ssh 路径。 将 git-repository 和 git-submodule-repository 定位在同一个 DevOps Azure。

我看到 Base git-repository checkout 正常,但 git-submodule 不正常。

我哪里错了?!

【问题讨论】:

    标签: git azure-devops git-submodules bamboo


    【解决方案1】:

    您可以尝试在 azure devops 上创建一个 PAT 并像这样在 Bamboo 上设置一个 repo:

    身份验证类型:无

    https://<token>@dev.azure.com/<organization>/<project>/_git/<repository>
    

    【讨论】:

    • 谢谢,这就是解决方案。
    猜你喜欢
    • 2012-11-10
    • 2015-01-19
    • 1970-01-01
    • 2021-03-22
    • 1970-01-01
    • 2015-11-21
    • 2019-10-24
    • 2018-12-10
    • 2013-04-13
    相关资源
    最近更新 更多