UiPath Documentation
solutions-management
latest
false
解决方案用户指南
  • 简介
  • 管理解决方案项目和包
  • 管理解决方案部署
  • 最佳实践
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

更改解决方案版本

在 Automation Cloud 中将解决方案部署升级或降级到其他包版本。

提示:

在升级生产部署之前,UiPath 建议首先在专用的测试部署中验证升级。有关详细信息,请参阅在测试环境中验证解决方案升级

“更改版本”操作可用于将部署升级到较新的包版本或降级到较旧的版本(回滚)。

降级解决方案不会删除实体、选项集和 Webhook。

打开“更改版本”工作流

  1. 在 Orchestrator 中,选择租户级别的“解决方案”

  2. “部署”选项卡中,找到要更新的部署。

    提示:

    当有可用于部署的较新的包版本时, “版本”列会在当前版本号旁边显示升级指示器。您也可以直接从行中选择“升级”以开始流程。

  3. 选择行末尾的三点菜单 (⋮),然后选取“更改版本”

    “更改版本”工作流将在“设置”表单上打开。

填写“设置”表单

“设置”表单中已预先填写当前部署详细信息。查看并更新以下内容:

字段描述
与此部署关联的解决方案包。只读。
版本目标包版本。默认为最新发布的版本(或当前安装的版本以外的最新版本)。从下拉列表中选择其他版本,以升级或降级到特定版本。
部署名称现有部署的名称。只读。

选择“更改版本”以继续,或选择下拉箭头,然后选择“自定义”以打开资源资源管理器并查看组件更改,然后再运行操作。

查看组件更改

当您选择“自定义”时,资源浏览器会显示即将更改的内容的摘要:

  • 新添加的组件,标有加号 (+) 图标。版本更改后,将在目标环境中创建这些组件。

    If the target version adds a component with the same name as one this version change removes, the name conflict no longer blocks the operation: the name becomes available once the removal is confirmed. The conflict still blocks the version change if the resource with that name is not being removed.

  • 已删除的组件,用减号 (-) 图标标记。系统将从目标环境中删除这些组件,除非其他解决方案引用了这些组件。在这种情况下,组件将保留在环境中,但会从解决方案中删除。

    Removing a queue or storage bucket is blocked if something outside this version change still depends on it: a queue cannot be removed while a trigger that survives the version change still uses it, and a bucket cannot be removed while a queue, task catalog, or process that survives the version change still uses it as a retention target. Remove the dependent component in the same version change to proceed.

    If removing a queue or storage bucket would delete its last reference (it is not shared into any other folder), you must confirm the deletion before the version change can run. See Confirm the deletion of replaced resources below.

  • 已编辑的组件,标有星号 (*) 图标。“比较属性差异”面板突出显示所有属性级别的更改。

    如果组件仅更改了可配置属性,则不会将其标记为已编辑。默认情况下,已编辑的组件保留其可配置属性的现有配置值,但您可以切换为使用包配置。要查看所有属性级别的更改,请使用“比较属性差异”面板。

(可选)编辑任何可配置组件属性,然后选择“继续更改版本”以运行操作。对于连接组件,身份验证类型属性显示为单选卡,每个卡显示选项的标题和说明,而不是下拉列表。

打开资源管理器后,您可以在版本更改运行之前将组件链接到现有资源,更改链接到的资源或取消链接。取消链接将删除解决方案与外部组件之间的连接;升级时,系统会在解决方案文件夹中全新创建资源,而不是重用链接的组件。

This also applies to a resource that a previous version installed automatically: the link control no longer appears locked for these, and you can link them the same way as any other unlinked resource. Linking an installed resource is supported for the following resource types:

  • 流程
  • 资产
  • 存储桶
  • 队列
  • Webhook
  • 连接
  • 索引

已链接的组件在资源资源管理器中标有“已链接”徽章。选择链接的组件,会显示一个带有链接资源信息的卡片,如果资源位于租户级别而非文件夹中,则还包括租户芯片。

要链接、更改或取消链接资源,请执行以下操作:

  1. 在资源浏览器中,选择组件。
  2. 选择以下选项之一:
    • “链接到现有组件”,以链接未链接的组件。
    • 更改以将链接的组件链接到其他资源。
    • 取消关联以删除现有链接。
备注:

A resource cannot be linked to its own installed copy.

有关“链接到现有选取器”的详细信息,请参阅“部署解决方案”中的链接、更改或取消链接组件

结果:取消链接后,系统会在升级时在解决方案文件夹中全新创建资源,除非您在应用版本更改之前将其链接到其他现有组件。应用版本更改后,无法再重新链接资源。

When you link a resource that a previous version installed automatically, the installed copy is retired: it's permanently deleted, together with its data, once the version change runs. See Confirm the deletion of replaced resources below.

Confirm the deletion of replaced resources

Linking an installed resource to an existing one, or removing a queue or storage bucket that has no other reference, permanently deletes the replaced resource and its data. Before the version change can run, you must confirm this loss.

An inline alert appears above the action buttons, listing the affected resources. Select Delete and deploy to confirm and continue, or use Validate or Save as draft to change the configuration instead. If you change the configuration after confirming, the alert reappears for a fresh confirmation.

If the version change is started without this confirmation (for example, through the API), the operation is rejected.

警告:

Deleted resources are not recovered by a later rollback. Rolling back re-creates the resource from the solution package as a new installed resource, without its previous data.

版本变更后

您可以在“部署”选项卡中监控操作状态。有关所有状态的详细信息,请参阅部署状态

备注:

版本更改后,部署状态为“非活动” 。根据激活前是否需要其他配置,非活动部署进一步分类为“非活动”(准备激活)“非活动”(需要设置才能激活) 。您必须手动激活部署,才能使解决方案正常运行。

结果:部署已升级或降级到选定版本。“部署”选项卡显示“上次操作”中的“更改版本”- 成功,并且“版本”列会反映新版本。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新