【问题标题】:Sharing Azure DevOps Portal with Azure DevOps Server 2020与 Azure DevOps Server 2020 共享 Azure DevOps 门户
【发布时间】:2021-11-15 01:08:00
【问题描述】:

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

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

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

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

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

谢谢, 克劳德

【问题讨论】:

    标签: azure azure-devops-server-2019 azure-devops-self-hosted-agent


    【解决方案1】:

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

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

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

    您不能在 Azure DevOps 服务和 Azure DevOps 服务器之间共享 agnet。

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

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

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

    在 Azure DevOps Server 中,如果要创建 Pipeline 而不克隆 repo,可以使用 Other Git 选项在 Azure DevOps Service 中使用 repo,该选项仅支持经典模式管道。

    【讨论】:

      猜你喜欢
      • 2021-01-31
      • 2021-06-28
      • 1970-01-01
      • 1970-01-01
      • 2022-11-02
      • 2022-11-03
      • 1970-01-01
      • 2021-03-07
      • 2021-02-18
      相关资源
      最近更新 更多