cicd-integrations
2022.10
false
CI/CD 集成用户指南
- 概述
- UiPath CLI
- Azure DevOps 扩展程序
- Jenkins 插件
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。
新发布内容的本地化可能需要 1-2 周的时间才能完成。
在 Orchestrator 中运行作业
Prerequisites:
- 在 Orchestrator 中创建流程。
- 运行 CLI
exe(适用于 Windows)或dll(适用于 Linux)文件。 - Add the required Orchestrator API access application scopes.
要在 Orchestrator 中运行作业,请执行以下步骤:
-
使用
uipcli job运行job任务。现在,您可以看到可用子任务的列表。 -
指定所需参数并运行
run子任务。请参阅下面的参数列表。
参数 描述 -i, or--input_path(Required only if the entry point of the workflow has input parameters)与要运行的流程对应的 JSON 输入文件的完整路径。 JSON 文件格式示例:
{ "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }{ "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }{ "StringArgument_In": "MyConfigurationValue", "IntArgument_In": 1, "DictionaryArgument_In": { "Key1": "Value1", "Key2": "Value2" } }-P或--priority要运行作业的优先级:- 低。- 正常(默认)。- 高。 -r或--robots特定机器人名称的列表,以逗号分隔。 -j或--jobscount要运行流程的次数。 流程运行的默认次数为 1。 -U或--userThe name of the user. This should be a machine user, not an Orchestrator user. For local users, the format is MachineName\UserName. -M或--machine要在其上运行流程的计算机的名称。 -R或--result_path要存储作业结果的 JSON 文件或文件夹的完整路径。 结果以 JSON 文件形式返回。 -W或--timeout作业执行的超时 (秒)。 默认值为 1800 秒。 -f或--fail_when_job_failsThe command fails when one job fails, The default for this is True. -w或--waitThe command waits for the job to finish. The default for this is True. -b或--job_type(仅适用于新式文件夹)作业的运行时类型。 您可以选择:- Unattended-NonProduction。-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显示版本信息。
Process Name (pos.0)(Required)要运行的流程的名称。 Orchestrator URL (pos.1)(Required)Orchestrator 实例的 URL。 Orchestrator Tenant (pos.2)-
(Required) for SaaP deployments.
-
(Optional) for PaaS deployments.
要在其中运行流程的 Orchestrator 实例的租户。 -
用法:
job run <process_name> <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-j <jobscount>] [-R <result_path>] [-P <priority>] [-r <robots>] [-f <do_not_fail_when_job_fails>] [-W <timeout>] [-w <do_not_wait>] [-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>] [-l <language>]
job run <process_name> <orchestrator_url> <orchestrator_tenant> [-i <input_path>] [-j <jobscount>] [-R <result_path>] [-P <priority>] [-r <robots>] [-f <do_not_fail_when_job_fails>] [-W <timeout>] [-w <do_not_wait>] [-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>] [-l <language>]
示例:
job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456job run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P Lowjob run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P Normal -o MyFolderjob run ProcessName "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -P High -o MyFolderjob run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -f false -W 0job run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P High -j 3 -w falsejob run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -P Low -r robotName -R C:\Tempjob run ProcessName "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount -r robotName -R C:\Temp\status.jsonjob run ProcessName "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read" -r robotName -R C:\Temp\status.json