跳转至

Package multiple products(打包多个产品)

In Foundry DevOps, a draft can contain multiple products that are packaged at the same time. When a draft contains multiple products, DevOps guarantees that linked products are calculated in the correct dependency order, eliminating the need to manually sequence packaging.

Create a draft with multiple products

To begin, navigate to your store and select Create new group.

The store overview page displays draft groups and a list of published products.

Select existing products that require a new version, or create new products. You can also move existing drafts from other groups into the new draft group.

The Add products dialog displays available products and drafts to include in the draft group.

Each product in the draft can be configured independently with its own outputs, inputs, and settings. Refer to Create a product for more details.

Linked products graph

The Overview page of a draft displays a graph of the products in the current draft alongside their upstream and downstream linked product dependencies.

The Overview page displays a dependency graph of products in the draft group alongside upstream and downstream linked products.

When a draft contains multiple products, DevOps automatically resolves dependencies between them. Linked products are packaged in the correct order so that upstream products are processed before downstream products that depend on them. This eliminates the need to manually determine and sequence packaging to resolve cross-product dependencies.

You can also use the graph as an entry point to add or remove products from the current draft.

Selecting a product in the graph displays options to view the product or create a draft.

The graph also displays warnings when linked product relationships are broken. These can often be resolved by adding the affected product to the current draft and resolving any missing inputs or outputs.

The graph displays warnings indicating that a product no longer fulfills inputs for downstream linked products.

Move input to output of another draft

It is possible to move the inputs of one draft to another draft within the draft group. This is helpful if you want the inputs of one product to be fulfilled by the outputs of an upstream linked product. Select one or more inputs and choose Add {N} to other draft from the toolbar at the bottom of your screen.

A bottom toolbar displays bulk actions including Move to outputs and Add to other draft for selected inputs.

Publish

Once you are satisfied with the products in your draft, select Publish. DevOps publishes the products in dependency order, ensuring that linked products are available before any products that depend on them.

The Review and publish draft group dialog displays version increments, changelog descriptions, and validation status for multiple products.


中文翻译


打包多个产品

在 Foundry DevOps 中,一个草稿(draft)可以包含多个同时打包的产品。当草稿包含多个产品时,DevOps 会确保关联产品(linked products)按照正确的依赖顺序进行计算,无需手动编排打包顺序。

创建包含多个产品的草稿

首先,导航至您的商店并选择 创建新分组(Create new group)

商店概览页面显示草稿分组和已发布产品列表。

选择需要新版本的现有产品,或创建新产品。您也可以将其他分组的现有草稿移至新的草稿分组。

添加产品对话框显示可包含在草稿分组中的可用产品和草稿。

草稿中的每个产品都可以独立配置其输出、输入和设置。更多详情请参阅创建产品(Create a product)

关联产品关系图

草稿的 概览(Overview) 页面会显示当前草稿中产品的依赖关系图,以及其上游和下游的关联产品依赖关系。

概览页面显示草稿分组中产品的依赖关系图,以及上游和下游的关联产品。

当草稿包含多个产品时,DevOps 会自动解析它们之间的依赖关系。关联产品会按正确顺序打包,确保上游产品在其依赖的下游产品之前处理。这消除了手动确定和编排打包顺序以解决跨产品依赖关系的需求。

您还可以将关系图作为入口点,向当前草稿添加或移除产品。

在关系图中选择产品会显示查看产品或创建草稿的选项。

当关联产品关系中断时,关系图还会显示警告。通常可以通过将受影响的产品添加到当前草稿并解决缺失的输入或输出来解决这些问题。

关系图显示警告,指示某个产品不再满足下游关联产品的输入需求。

将输入移至另一个草稿的输出

可以将一个草稿的输入移至草稿分组内的另一个草稿。如果您希望某个产品的输入由上游关联产品的输出来满足,这将非常有用。选择一个或多个输入,然后从屏幕底部的工具栏中选择 将 {N} 添加到其他草稿(Add {N} to other draft)

底部工具栏显示批量操作,包括将所选输入移至输出或添加到其他草稿。

发布

当您对草稿中的产品满意后,选择 发布(Publish)。DevOps 会按依赖顺序发布产品,确保关联产品在其依赖的产品之前可用。

审核并发布草稿分组对话框显示多个产品的版本增量、变更日志描述和验证状态。