迁移组织之间的Azure Devops伪像

发布于 2025-01-26 23:09:18 字数 1399 浏览 3 评论 0原文

我正在尝试将Azure DevOps项目迁移到另一个项目 /组织。 我成功地

  • 克隆了回购,
  • 使用Azure DevOps迁移工具迁移了工作项,
  • 我将构建和释放管道导出为JSON文件并再次导入它们。
  • 我在VM上创建了一个自我托管的代理,并试图运行构建管道 - 作业“ dotnet Restore”。
  • 我在工件下创建了一个新提要。 不幸的是,使用DotNet Restore的工作失败了,因为它仅依赖于旧项目中可用的工件,

该如何将包装从旧项目的供稿迁移到新项目?

我假设我应该以某种方式克隆旧项目的提要,以便我可以简单地以新组织的名称更新nuget.config。 先感谢您。

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!-- remove any machine-wide sources with <clear/> -->
    <clear />
    <!-- also get packages from the NuGet Gallery -->
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="DotNetArcade" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
    <add key="<OLD_FEED1" value="https://pkgs.dev.azure.com/<old org>/_packaging/<OLD_FEED1>/nuget/v3/index.json" />
    <add key="<OLD_FEED2" value="https://pkgs.dev.azure.com/<old org>/_packaging/<OLD_FEED2>/nuget/v3/index.json" />
    <add key="<OLD_FEED3" value="https://pkgs.dev.azure.com/<old org>/_packaging/<OLD_FEED3>/nuget/v3/index.json" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration>

I am trying to migrate (clone) an Azure Devops project to another project / organization.
I successfully

  • cloned the repos
  • migrated the work items using Azure DevOps Migration Tools by NkdAgility
  • I exported the build and release pipelines as json files and imported them again.
  • I created a selfhosted agent on my VM and trying to run the build pipelines - the job "dotnet restore" on that.
  • I created a new feed under Artifacts.
    Unfortunately the job with dotnet restore fails because it relies on the artifacts only available in the old project

How can I migrate the packages from the feeds of the old project to the new one(s)?

I assume I am supposed to clone the feeds of the old project somehow so that I can simply update the nuget.config with the name of the new organization.
Thank you in advance.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!-- remove any machine-wide sources with <clear/> -->
    <clear />
    <!-- also get packages from the NuGet Gallery -->
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="DotNetArcade" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
    <add key="<OLD_FEED1" value="https://pkgs.dev.azure.com/<old org>/_packaging/<OLD_FEED1>/nuget/v3/index.json" />
    <add key="<OLD_FEED2" value="https://pkgs.dev.azure.com/<old org>/_packaging/<OLD_FEED2>/nuget/v3/index.json" />
    <add key="<OLD_FEED3" value="https://pkgs.dev.azure.com/<old org>/_packaging/<OLD_FEED3>/nuget/v3/index.json" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浪漫人生路 2025-02-02 23:09:18

我假设我应该以某种方式克隆旧项目的提要,以便我可以简单地更新Nuget.config。

恐怕目前没有这样的方法可以实现这一目标。

您可以清除旧项目A的包裹本地缓存,然后从旧供稿中还原这些软件包。

这样,这些软件包就可以在您的本地恢复,默认路径是:

C:\Users\<username>\.nuget\packages

然后我们可以使用Nuget.exe将这些软件包推向您的新供稿。

当然,您可以检查Daniel的建议,使用REST API获取包装ID列表,然后安装它们并将其推入新提要。

I assume I am supposed to clone the feeds of the old project somehow so that I can simply update the nuget.config with the name of the new organization.

I am afraid there is no such out of box way to achieve this at this moment.

You could clear the local cache of the packages for the old project A, then restore those packages from the old feed.

In this way, those packages are restored on your local, the default path is:

C:\Users\<username>\.nuget\packages

Then we could use the nuget.exe to push those package to your new feed.

Of course,you could check the Daniel`s suggestion, to use the REST API to get the package Id list, then install them and push them to the new feed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文