git - 如何将 Azure DevOps 服务器存储库与 Azure DevOps 服务管道集成

标签 git azure azure-devops tfs azure-pipelines

我们最近计划迁移到 Azure DevOps SaaS 版本。在这里,我们将基于本地 Azure DevOps Server 2020.1.1 的源代码、Repos 创建管道。我尝试用“other git”服务连接但结果并没有太多预期。使用 PAT 创建时失败。所以我用我的凭据创建了。当新代码 checkin 且除主分支之外的其他分支未显示时,自动触发不起作用。

然后,在我创建基于“Azure repos/Team Foundation Server”的服务连接后,但在创建经典管道时该服务连接未显示。请有人帮助我,我们如何基于本地 Azure DevOps 服务器存储库在 Azure DevOps 服务中创建管道。我们怎样才能将两者结合起来。请有人帮助我解决这个问题。谢谢

最佳答案

要将 TFS 存储库与 Azure DevOps Pipeline 集成,您可以使用“Azure Repos/Team Foundation Server”服务连接类型:https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#azure-repos

enter image description here

要从 TFS 与 Azure DevOps 进行通信,您需要确保本地 TFS 计算机上的入站连接允许以下 DevOps IP 地址:https://learn.microsoft.com/en-us/azure/devops/organizations/security/allow-list-ip-url?view=azure-devops&tabs=IP-V4#inbound-connections

关于git - 如何将 Azure DevOps 服务器存储库与 Azure DevOps 服务管道集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73827523/

相关文章:

azure - 使用 Azure 函数导出 CSV

azure - 如何获取 currentSlot 并使用 Azure devops 上的新插槽更改 helm 升级命令?

azure - 将 SSIS (.ispac) 打包到 NuGet Feed(Azure Artifacts)中

git - git stash pop 之后未上演的文件

git - 从 fork 的 repo 中删除上游分支是否安全?

azure - 如何在 Azure SQL 数据库中使用 Log Analytics 获取用户日志信息

azure - 无法解析远程名称 : 'dev.azure.com' when setting up self-hosted devops agent in Docker

git - 如何使用 Git 提交文件修改时间

git - 如何为 Git 子模块使用 SSH 而不是 HTTP?

c# - 同一服务器上多个 WebJob 的 Azure WebJob 应用程序洞察