- 概述
- UiPath CLI
- Azure DevOps 扩展程序
- Jenkins 插件
Prerequisites:
- 创建项目。
- 运行 CLI
exe(适用于 Windows)或dll(适用于 Linux)文件。 - Add the required Orchestrator API access application scopes.
要分析项目,请执行以下步骤:
-
使用
uipcli package运行package任务。 您可以查看可用子任务的列表。 -
指定所需参数并运行
analyze子任务。请参阅下面的参数列表。
UiPath CLI 的“打包”或“分析”任务不执行项目验证。
图例:(*) - 可选,在使用其他包订阅源时建议使用。
| 参数 | 描述 |
|---|---|
|
|
选择分析后要输出的消息类型:
|
|
|
违反任何规则时,作业将失败。 |
|
|
将警告视为错误。 |
|
|
要存储结果的 JSON 文件的完整路径。 如果不将其添加为参数,则结果将仅在标准控制台中打印。 |
|
|
要在分析期间忽略的规则列表,以逗号分隔。 |
|
(Required if you use Basic Authentication, through a username and a password) |
用于向 Orchestrator 进行身份验证的用户名。 您必须将其与相应的密码配对。 |
|
(Required if you use Basic Authentication, through a username and a password) |
用于对 Orchestrator 进行身份验证的密码。您必须将其与相应的用户名配对。 |
|
(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. |
|
(Required if you use token-based authentication) |
The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID. |
|
|
The Orchestrator CloudRPA account name(organization name). You must pair it with the Application ID, Application Secret, and Application scope for external application. |
|
(Required if you use external application authentication) |
The external Application ID. You must pair it with the **Application Account, Application Secret, and Application scope. |
|
(Required if you use external application authentication) |
The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope. |
|
(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. |
|
|
目标 Orchestrator 文件夹的名称。 要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如, |
|
|
Orchestrator 实例的 URL。 |
|
|
要删除计算机的 Orchestrator 实例的租户。 |
|
|
Orchestrator 语言。 |
|
|
禁用遥测数据。 |
|
|
显示事件的跟踪。 |
-identityUrl (Required only for PaaS deployments)
| 身份服务器的 URL。 |
|
|
禁用内置 NuGet 订阅源。 |
|
|
显示此命令的参数和示例。 |
|
|
显示版本信息。 |
Project(s) Path (pos.0) (必填)
| project.json文件的路径,或包含多个project.json文件的文件夹的路径。
|
用法:
package analyze <project_path> [--analyzerTraceLevel <analyzer_trace_level>] [--stopOnRuleViolation] [--treatWarningsAsErrors] [--saveOutputToFile] [--ignoredRules <activity_1_id,activity_2_id,activity_3_id,activity_4_id>] [--orchestratorUrl <orchestrator_url> --orchestratorTenant <orchestrator_tenant>] [--orchestratorUsername <orchestrator_user> --orchestratorPassword <orchestrator_pass>] [--orchestratorAuthToken <auth_token> --orchestratorAccountName <account_name>] [--orchestratorFolder <folder>]
package analyze <project_path> [--analyzerTraceLevel <analyzer_trace_level>] [--stopOnRuleViolation] [--treatWarningsAsErrors] [--saveOutputToFile] [--ignoredRules <activity_1_id,activity_2_id,activity_3_id,activity_4_id>] [--orchestratorUrl <orchestrator_url> --orchestratorTenant <orchestrator_tenant>] [--orchestratorUsername <orchestrator_user> --orchestratorPassword <orchestrator_pass>] [--orchestratorAuthToken <auth_token> --orchestratorAccountName <account_name>] [--orchestratorFolder <folder>]
示例:
package analyze "C:\UiPath\Project\project.json"package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error"package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolationpackage analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrorspackage analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrors --resultPath "C:\UiPath\Project\output.json"package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrors --resultPath "C:\UiPath\Project\output.json" --ignoredRules "ST-NMG-009,ST-DBP-020,UI-USG-011,ST-DBP-020"package analyze "C:\UiPath\Project\project.json" --analyzerTraceLevel "Error" --stopOnRuleViolation --treatWarningsAsErrors --resultPath "C:\UiPath\Project\output.json" --ignoredRules "ST-NMG-009,ST-DBP-020,UI-USG-011,ST-DBP-020" --orchestratorUrl "https://orchestratorurl.com" --orchestratorTenant "default" --orchestratorUsername "username" --orchestratorPassword "\_ye5zG9(x" --orchestratorAuthToken "AuthToken" --orchestratorAccountName "AccountName" --orchestratorFolder "OrchestratorFolder"