简体   繁体   English

无法验证 GIT 托管在 TFS 作为 Azure Devops 中的外部 Git 服务连接

[英]Failure to Authenticate to GIT hosted on TFS as an External Git Service Connection in Azure Devops

As my work is making the transition between TFS and Azure Devops, we are in a position where we would like to start mananging all our dev's User Stories/Tasks/Bugs up in Azure Devops - along with the builds from our check-ins.由于我的工作是在 TFS 和 Azure Devops 之间进行转换,我们在 position 中,我们想开始在 Azure Devops 中管理我们所有开发人员的用户故事/任务/错误 - 以及我们签入的构建。

To get this setup we would like to first setup all our pipelines with the existing git repo's we have up on our TFS server.要进行此设置,我们首先要使用 TFS 服务器上现有的 git 存储库设置所有管道。 But none of the service connection setup's I have tried are correctly authenticating.但是我尝试过的服务连接设置都没有正确验证。 The setup that appears to be working in other systems (tested with an import into github) is to use username/PAT.似乎在其他系统中工作的设置(通过导入 github 进行测试)是使用用户名/PAT。 GIT 连接的基本设置

There is nothing unique to how this is setup on TFS. There is also no Verify button that sure would be a nice addition (Microsoft).这在 TFS 上的设置方式没有什么独特之处。也没有验证按钮肯定会是一个不错的添加 (Microsoft)。

Running this on a pipeline creates this log.在管道上运行它会创建此日志。 在此处输入图像描述

The authentication portion of the url is also translating the @ in my email address to %AZP2540 so instead of having me@here.com:PAT it passes me%AZP2540here.com:PAT url 的身份验证部分还将我的 email 地址中的 @ 转换为 %AZP2540,因此不是让 me@here.com:PAT 它通过 me%AZP2540here.com:PAT

Any help on how to get past this, would be a big help.任何关于如何解决这个问题的帮助都会有很大的帮助。

UPDATE: Switching over to HTTPS allowed me to import the repository with a username and PAT.更新:切换到 HTTPS 允许我使用用户名和 PAT 导入存储库。 The same setup has not worked for an External GIT Service Connection.相同的设置不适用于外部 GIT 服务连接。

you'll need to configure a service connection of type Azure Repos/Team Foundation Server with access to the project and include that in YAML, not in the type of git您需要配置类型为Azure Repos/Team Foundation Server的服务连接以访问该项目,并将其包含在 YAML 中,而不是 git 类型中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM