cicd-integrations
2023.10
false
- 概述
 - UiPath CLI
 - Azure DevOps 扩展程序
 - Jenkins 插件
 
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。

CI/CD 集成用户指南
上次更新日期 2025年10月23日
UiPath 部署
使用 UiPathDeploy 任务,您可以将 UiPath NuGet 包部署到 UiPath Orchestrator 上。
重要提示: 
确保您的网络允许访问以下 NuGet 包订阅源:
https://api.nuget.org/v3/index.jsonhttps://uipath.pkgs.visualstudio.com/\_packaging/nuget-packages/nuget/v3/index.jsonhttps://uipath.pkgs.visualstudio.com/Public.Feeds/\_packaging/UiPath-Internal/nuget/v3/index.jsonhttps://www.myget.org/F/workflowhttp://www.myget.org/F/uipathhttps://www.myget.org/F/uipath-dev/api/v3/index.json
配置
使用下表配置 UiPath 部署输入。
| 参数 | 描述 | 
|---|---|
| 显示名称是必填项 | 输入租户的名称。 | 
| 需要 Orchestrator 连接。 | 配置服务连接以访问 UiPath Orchestrator 服务。您只能为此步骤配置连接,也可以使用现有的全局连接。有关更多信息,请参阅“配置 UiPath Orchestrator 服务连接”。 | 
| 包(必填) | 定义 UiPath NuGet 包的订阅源。 | 
| 自动创建流程 | 如果要在不创建流程的情况下部署包,请选择此选项。 默认情况下选中该选项。如果选中,则需要配置“入口点路径”参数。 | 
| Orchestrator 文件夹(必需) | 指定正在部署流程的文件夹。对于传统文件夹,您可以使用指定的机器人名称。对于新式文件夹,您可以使用指定的用户和计算机名称。 要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,AccountingTeam\TeamJohn。 | 
| 环境 | (可选)如果使用传统文件夹(已弃用),则需要定义将要部署包的环境。您可以使用此字段创建或更新包。您可以使用以下示例将环境添加到此字段,以逗号分隔:testingEnvironment,productionEnvironment。 | 
| Entry Point Path(s) (Required) | 指定入口点路径以创建或更新流程。入口点路径指定从项目根目录开始的文件路径。在配置入口点路径之前,请考虑以下事项:入口点可用于 Orchestrator 21.4 或更高版本(例如 21.4.UiPathDeploy.entryPoints)。对于低于 21.4 的 Orchestrator 版本,您需要输入任意值,因为该字段不得留空。默认入口点设置为 Main.xaml。可以将多个入口点指定为“Main.xaml、EntryPoint2.xaml”。对于传统文件夹(已弃用),您只能为每个环境指定一个入口点。对于嵌套文件夹,您需要如以下所示指定文件路径:Folder01/Folder02/Main.xaml 或 Folder01/Folder02/Entrypoint.xaml 有关更多信息,请参见 Orchestrator 入口点。 | 
| 追踪级别 | 从下拉列表中选择用户。 | 

YAML 管道详述
您可以为 UiPath 部署预览完全解析的 YAML 文档。
- task: UiPathDeploy@2  inputs:    #orchestratorConnection: # Service connection to UiPath Orchestrator    #packagesPath: '$(Build.ArtifactStagingDirectory)\Packages\ITAutomationProcess'    #folderName: 'ITAutomation'    #environments: 'AutomationRobots' # Optional,    #traceLevel: 'None' # Options: Critical, Error, Warning, Information, Verbose, None- task: UiPathDeploy@2  inputs:    #orchestratorConnection: # Service connection to UiPath Orchestrator    #packagesPath: '$(Build.ArtifactStagingDirectory)\Packages\ITAutomationProcess'    #folderName: 'ITAutomation'    #environments: 'AutomationRobots' # Optional,    #traceLevel: 'None' # Options: Critical, Error, Warning, Information, Verbose, None