Azure DevOps 是否可以从私有存储库中检索我的项目?

Is it possible to Azure DevOps to retrieve my project from private repository?

我想使用 Azure DevOps,但我公司的代码在私有服务器上。实际上,它驻留在私有 IP 中的 Subversion 服务器上。

有一种方法可以使用 Azure DevOps 检索我的代码或直接从我的本地服务器构建?

答案是肯定的。您可以将 on-premises Subversion 服务器与 Azure Pipelines 集成。

If your server is reachable from the hosted agents, then you can use the hosted agents to run manual, scheduled, or CI builds.

Otherwise, you must set up self-hosted agents that can access your on-premises server and fetch the code.

查看 here 了解更多信息。

因为您的私有存储库驻留在私有 IP 中的 Subversion 服务器上。您需要 build a self-hosted agent 在 on-premise 服务器计算机或可以访问 Subversion 服务器的计算机上。

当您开始创建 azure pipeline(Azure devops Project portal-->Pipelines-->New Pipeline)时,您可以按照向导选择 Subversion 作为 Where is your code 并点击 Add connection 创建一个 subversion service connection。参考this tutorial创建天蓝色管道。

创建管道后。 Select 您的 self-hosted 代理所在的私人代理池。因此,当您 运行 管道时,它将 运行 在您的 self-hosted 代理上,该代理托管在您的本地机器上。由于您的 Subversion 服务器可在您的本地计算机上访问,因此管道将能够检索您的代码并在我们的 self-hosted 代理上构建。请参阅下面的屏幕截图。