简体   繁体   English

通过上游与不同的 Azure DevOps 服务器共享 Nuget Package

[英]Share Nuget Package with different Azure DevOps Server over Upstream

Summary:概括:

  • I am trying to get an Azure Artifact (NuGet Package) synchronized between two DevOps Projects using Feeds我正在尝试使用 Feeds 在两个 DevOps 项目之间同步 Azure 工件(NuGet 包)
  • When both Projects belong to the same DevOps tenant i have no problems当两个项目属于同一个 DevOps 租户时,我没有问题
  • When i try to synchronize between two different tenants i get an error.当我尝试在两个不同的租户之间进行同步时,出现错误。

=> Is this doable in general or impossible? => 这通常是可行的还是不可能的?

I have the following setup:我有以下设置:

Org A组织A

  • User A用户A
  • DevOps Server A (Needs external NuGet Package) DevOps Server A(需要外部 NuGet 包)
  • Feed A饲料A

Org B组织B

  • User B用户乙
  • DevOps Server B DevOps 服务器 B
  • Feed B (external NuGet Package)饲料B(外部NuGet包)

Is it possible to connect the feed of Org B to Org A with Azure custom Upstreams (Add Upstream -> Azure Artifacts feed in another organization -> azure-feed://OrgB/ProjectB/FeedB@Local -> NuGet -> Save)是否可以使用 Azure 自定义上游将 Org B 的提要连接到 Org A(添加上游 -> Azure 另一个组织中的工件提要 -> azure-feed://OrgB/ProjectB/FeedB@Local -> NuGet -> 保存)

If i want to save the Upstream Resources I always get the following error message: The source at 'azure-feed://OrgB/ProjectB/FeedB@Local' cannot be configured as an upstream because it does not exist or you do not have permissions to it.如果我想保存上游资源,我总是会收到以下错误消息: The source at 'azure-feed://OrgB/ProjectB/FeedB@Local' cannot be configured as an upstream because it does not exist or you do not have permissions to it.

I tried giving access to User A to Org B but it does not work.我尝试将用户 A 的访问权限授予组织 B,但它不起作用。 Is this even possible (in a technical sense)?这甚至可能(在技术意义上)? If not, what is the best way to share a NuGet Package with a different Organisation (different Azure DevOps Server)?如果不是,与不同组织(不同的 Azure DevOps 服务器)共享 NuGet Package 的最佳方法是什么? I do not want to be dependent on a server in Org B. Best case is the NuGet Package is mirrored in Org A. In the unlikely event that the server or Azure DevOps from Org B is down, the build in Org A still works.我不想依赖 Org B 中的服务器。最好的情况是 NuGet Package 在 Org A 中镜像。万一发生 Org B 的服务器或 Azure DevOps 宕机,Org A 中的构建仍然有效。

  1. I invited User A to DevOps Server B. ( https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/add-external-user?view=azure-devops )我邀请用户 A 到 DevOps 服务器 B。 ( https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/add-external-user?view=azure-devops )
  2. Added User A to Feed B ( https://learn.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=azure-devops )将用户 A 添加到提要 B ( https://learn.microsoft.com/en-us/azure/devops/artifacts/feeds/feed-permissions?view=azure-devops )

Add upstream source needs to be in the same Azure Active Directory. Add upstream source需要在同一个 Azure Active Directory 中。
Besides, you use service connection->nuget->External Azure Server to share Nuget Package.此外,您使用服务连接->nuget->外部 Azure 服务器共享 Nuget Package。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM