【问题标题】:How do i connect Azure Pipelines in one instance of Azure Devops to an Azure Repo in a separate instance of Azure Devops如何将 Azure Devops 的一个实例中的 Azure Pipelines 连接到 Azure Devops 的单独实例中的 Azure Repo
【发布时间】:2020-01-25 11:52:11
【问题描述】:

关于如何将一个 Azure Devops 实例中的 Azure Pipelines 连接到另一个 Azure Devops 实例中的 Azure Repo 的任何建议。

我想我会使用“Other Git”作为代码源,但我想看看是否有人对此有任何建议。

谢谢

【问题讨论】:

    标签: azure-devops azure-pipelines azure-pipelines-build-task azure-repos


    【解决方案1】:

    如何将一个 Azure Devops 实例中的 Azure Pipelines 连接到另一个 Azure Devops 实例中的 Azure Repo

    你是在正确的方式!如果要在另一个单独的 Azure Devops 实例中构建 Azure 存储库,则应使用“Other Git”作为代码源。

    根据文档Pipeline options for Git repositories

    编辑使用 Git 存储库的管道时(在 Azure DevOps 或 TFS 项目、GitHub、GitHub Enterprise Server、Bitbucket Cloud 或 另一个 Git 仓库),

    所以,我们可以使用最新的选项,另一个 Git 存储库

    详情:

    • 点击Other Git,添加new service connection

    • 添加该仓库的Git repository URLPAT
    • 点击确定按钮保存连接。

    作为测试,我可以在另一个 Azure 存储库中构建项目。

    希望这会有所帮助。

    【讨论】:

    • 感谢您的帮助
    猜你喜欢
    • 2021-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多