- 概述
- UiPath CLI
- Azure DevOps 扩展程序
- Jenkins 插件
将包部署到 Orchestrator
Prerequisites:
- 创建包。
- 运行 CLI
exe(适用于 Windows)或dll(适用于 Linux)文件。 - Add the required Orchestrator API access application scopes.
要将包部署到 Orchestrator,请执行以下步骤:
-
使用
uipcli package运行package任务。 您可以查看可用子任务的列表。 -
指定所需参数并运行
deploy子任务。请参阅下面的参数列表。
参数 描述 -c或--createProcessThe default value for is
true.当设置为
true时,它会在 Orchestrator 文件夹中创建一个在命令中传递的流程。When set to
false, it doesn't create a process in the Orchestrator folder. For example,--createProcess false.-e或--environments(适用于传统文件夹)要将包部署到的环境列表,以逗号分隔。
If the environment doesn't belong to the default folder (organization unit), you must prefix the environment name with the folder name. For example, if the environment is TestEnvironment, and the folder name is AccountingTeam, then write the environment as AccountingTeam\TestEnvironment.
-h或--entryPointsPath定义用于创建或更新流程的特定入口点。这是始于项目根目录的入口点文件路径。
对于传统文件夹,只能为每个环境指定一个入口点。
-u, or--username(Required if you use Basic Authentication, through a username and a password)用于向 Orchestrator 进行身份验证的用户名。 您必须将其与相应的密码配对。
-p, or--password(Required if you use Basic Authentication, through a username and a password)用于对 Orchestrator 进行身份验证的密码。您必须将其与相应的用户名配对。
-t, or--token(Required if you use token-based authentication)The OAuth2 refresh token used for authenticating to Orchestrator. You must pair it with the Account Name and Client ID.
-a, or--accountName(Required if you use token-based authentication)The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID.
-A或--accountForAppThe Orchestrator CloudRPA account name (organization name). You must pair it with the Application ID,Application Secret, and Application scope for external application
-I, or--applicationId(Required if you use external application authentication)The external Application ID. You must pair it with the Application Account,Application Secret, and Application scope.
-S, or--applicationSecret(Required if you use external application authentication)The external Application Secret. You must pair it with the Application Account,Application ID, and Application scope.
--applicationScope(Required if you use external application authentication)The list of application scopes, separated by single spaces. You must pair it with the Application Account,Application ID, and Application Secret for external application.
-o或--organizationUnitOrchestrator 文件夹(组织单元)的名称。
要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,
AccountingTeam/TeamJohn。-l或--languageOrchestrator 用户界面中使用的语言。
-y或--disableTelemetry禁用遥测数据。
--traceLevel显示事件的跟踪。
--identityUrl(Required only for PaaS deployments)身份服务器的 URL。
--help显示此命令的参数和示例。
--version显示版本信息。
Package(s) Path (pos. 0)(Required)包文件的路径,或包含多个包的文件夹的路径。 Orchestrator URL (pos. 1)(Required)Orchestrator 实例的 URL。 Orchestrator 租户 (pos.2)
- (Required) for SaaP deployments.
- (Optional) for PaaS deployments.`
要删除计算机的 Orchestrator 实例的租户。
如果未指定入口点,则 uipcli 将创建一个具有 default 入口点的流程。如果指定了入口点,则系统将创建具有该入口点的流程,并将 _{entryPoint} 附加到流程名称。此外,与 package.Id 关联的所有流程都将更新为最新版本,无论流程是手动创建还是通过管道创建。
用法:
package deploy <packages_path> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-c <create_process>] [-e <environment_list>] [-l <language>]
package deploy <packages_path> <orchestrator_url> <orchestrator_tenant> [-u <orchestrator_user> -p <orchestrator_pass>] [-t <auth_token> -a <account_name>] [-A <account_for_app> -I <application_id> -S <application_secret> --applicationScope] [-o <folder_organization_unit>] [-c <create_process>] [-e <environment_list>] [-l <language>]
示例:
package deploy "C:\UiPath\Project 1" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456package deploy "C:\UiPath\Project\Package.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganizationpackage deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -e SAPEnvironment,ExcelAutomationEnvironment -l en-USpackage deploy "C:\UiPath\Project\Package.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccountpackage deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -A myAccountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"package deploy "C:\UiPath\Project\TestsPackage.1.0.6820.22047.nupkg" "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -e SAPEnvironment,ExcelAutomationEnvironment -l en-US -h EntryPoint1,EntryPoint2