与 Azure DevOps Server 2020 共享 Azure DevOps 门户

Sharing Azure DevOps Portal with Azure DevOps Server 2020

我们在 Azure Devops 门户上已经有管道连接到云上的存储库。 我创建了管道以在文件提交到回购协议时触发,并在自托管代理上提交到 运行。

我们曾经在迁移到 Azure DevOps Server 2020 更新 1.1 的本地 TFS 服务器上有一些内部存储库。

我想获得有关如何在门户和本地之间重用代理、YAML 和脚本的建议或最佳实践。

您会推荐使用相同的自托管代理吗?

我可以从本地 Azure DevOps 服务器访问云端 Azure 存储库中的 YAML 和 PS1 脚本吗?

谢谢, 克劳德

Would you recommend use the same self hosted agents?

不推荐也无法实现此功能。

配置自托管代理时,需要使用组织 url/Collection URL。一个代理只能连接到一个组织。

您不能在 Azure DevOps 服务和 Azure Devops 服务器之间共享代理。

我建议你可以在同一台机器上分别为Azure DevOps服务和Azure DevOps服务器创建代理,这样你就可以确保它们运行同一环境中的管道。

Could I access the YAML and PS1 scripts that are on an Azure repo on the cloud from my on-premises Azure DevOps Server ?

如果您想直接使用 Azure DevOps 服务存储库中的 YAML 文件在 Azure DevOps 服务器上创建管道,您需要 克隆存储库 到 Azure DevOps服务器来实现这个。

在 Azure DevOps Server 中,如果你想在不克隆 repo 的情况下创建一个 Pipeline,你可以使用 Other Git 选项来使用 Azure DevOps 中的 repo服务,此选项仅支持经典模式管道。