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

CI/CD 集成用户指南
上次更新日期 2025年11月18日
UiPath 部署
应用程序: RPA
类型:构建后任务
“UiPath 部署”在标准作业和管道中可用,可用于将 UiPath NuGet 包部署到 UiPath Orchestrator 上。

配置
| 作业参数 | 描述 |
|---|---|
| 包路径 | 包含 UiPath Nuget 包的文件夹。 |
| Orchestrator 地址 | 用以对包进行部署的 Orchestrator 实例地址。 |
| Orchestrator 租户 | 用以对包进行部署的 Orchestrator 租户。 |
| Orchestrator 文件夹 | 待部署的文件夹。如果此文件夹为传统文件夹,您还将需要设置environments字段。对于新式文件夹,则无需设置environments字段。要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,使用AccountingTeam\TeamJohn 。 |
| 环境(对于传统文件夹为必需) | 将包部署为流程的环境。对于包含现有流程的项目和环境,系统将更新流程,使其使用最新的项目版本。指定系统将包部署为流程的环境。对于包含现有流程的项目和环境,系统将更新流程,使其使用最新的项目版本。 |
| 入口点 | 指定入口点以创建或更新流程。入口点指定从项目根目录开始的 filePath。 条件:
|
| 身份验证 | 要对 Orchestrator 进行身份验证,您需要预先在 Jenkins 中创建凭据。 有四个用于身份验证的选项: (1) 使用用户名和密码对本地部署 Orchestrator 进行身份验证。 ( 2 ) 使用刷新令牌(API 密钥)对 Cloud Orchestrator 进行身份验证。 ( 3 ) 使用外部应用身份验证对 Cloud Orchestrator 进行身份验证。 ( 4 ) 使用 对本地部署 Orchestrator 进行身份验证。 |
| 追踪日志记录级别 | 用于启用跟踪日志记录的设置为以下级别之一:
|
备注:
确保您的网络允许访问以下 NuGet 包订阅源:
- https://api.nuget.org/v3/index.json
- https://uipath.pkgs.visualstudio.com/\\\_packaging/nuget-packages/nuget/v3/index.json
- https://uipath.pkgs.visualstudio.com/Public.Feeds/\/>\_packaging/UiPath-\ * Internal/nuget/v3/index.json
- https://www.myget.org/F/workflow
- http://www.myget.org/F/uipath
- https://www.myget.org/F/uipath-dev/api/v3/index.json
管道示例
pipeline { agent any environment { MAJOR = '1' MINOR = '0' } stages { stage ('PostBuild') { steps { UiPathDeploy ( packagePath: "path\\to\\NuGetpackage", orchestratorAddress: "OrchestratorUrl", orchestratorTenant: "tenant name", folderName: "folder name", environments: "environment", credentials: [$class: 'UserPassAuthenticationEntry', credentialsId: "credentialsId"], traceLoggingLevel: 'None' ) } } }}pipeline { agent any environment { MAJOR = '1' MINOR = '0' } stages { stage ('PostBuild') { steps { UiPathDeploy ( packagePath: "path\\to\\NuGetpackage", orchestratorAddress: "OrchestratorUrl", orchestratorTenant: "tenant name", folderName: "folder name", environments: "environment", credentials: [$class: 'UserPassAuthenticationEntry', credentialsId: "credentialsId"], traceLoggingLevel: 'None' ) } } }}