UiPath Documentation
cicd-integrations
2023.4
false
CI/CD 集成用户指南
  • 概述
    • 关于 CI/CD 管道
  • UiPath CLI
    • 关于 UiPath CLI
    • 下载 UiPath CLI
    • 兼容性矩阵
    • 运行 UiPath CLI
    • 管理 NuGet 订阅源
  • Azure DevOps 扩展程序
  • Jenkins 插件
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

将项目打包到包中

Prerequisites:

  • 创建项目。
  • 运行 CLI exe (适用于 Windows)或dll (适用于 Linux)文件。
  • Add the required Orchestrator API access application scopes.

要将项目打包到包中,请执行以下步骤:

  1. 使用uipcli package运行package任务。 您可以查看可用子任务的列表。

  2. 指定所需参数并运行pack子任务。

    请参阅下面的参数列表。

备注:

UiPath CLI 的“打包”或“分析”任务不执行项目验证。

图例:(*) - 可选,仅当您具有来自 Orchestrator 中某个库的依赖项时有用。

参数描述
-o、或 --output(必要项)要在其中打包项目的目标 Orchestrator 文件夹。
-v, or --version设置包版本。
--autoVersion自动生成包版本。
--outputType强制输出为指定的类型。
--splitOutput启用到运行时库和设计库的输出拆分。
--repositoryUrl项目进行版本控制时所在的存储库 URL。
--repositoryCommit从中提交构建项目的存储库。
--repositoryBranch从中构建项目的存储库分支。
--repositoryTypeVCS 系统存储库类型。
--projectUrlAutomation Hub 概念 URL。
--releaseNotes添加发行说明。
--libraryOrchestratorUsername (*)

(Required if you use Basic Authentication, through a username and a password)
用于向 Orchestrator 进行身份验证的用户名。 您必须将其与相应的密码配对。

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的
--libraryOrchestratorPassword (*)

(Required if you use Basic Authentication, through a username and a password)
用于对 Orchestrator 进行身份验证的密码。您必须将其与相应的用户名配对。

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的
--libraryOrchestratorAuthToken (*)

(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.

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的
--libraryOrchestratorAccountName (*)

(Required if you use token-based authentication)
The Orchestrator CloudRPA account name. You must pair it with the OAuth2 refresh token and Client ID.

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的
--libraryOrchestratorAccountForApp (*)The Orchestrator CloudRPA account name(organization name). You must pair it with the Application ID,Application Secret, and Application scope for external application

如果包从 Orchestrator 订阅源引用库,则这是必需的。
--libraryOrchestratorApplicationId (*)

(Required if you use external application authentication)
The external Application ID. You must pair it with the Application Account, Application Secret, and Application scope.

如果包从 Orchestrator 订阅源引用库,则这是必需的。
--libraryOrchestratorApplicationSecret (*)

(Required if you use external application authentication)
The external Application Secret. You must pair it with the Application Account, Application ID, and Application scope.

如果包从 Orchestrator 订阅源引用库,则这是必需的。
--libraryOrchestratorApplicationScope (*)

(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 订阅源引用库,则这是必需的。
--libraryOrchestratorFolder (*)目标 Orchestrator 文件夹的名称。

要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,AccountingTeam\TeamJohn。
--libraryOrchestratorUrl (*)Orchestrator 实例的 URL。
--libraryOrchestratorTenant (*)要删除计算机的 Orchestrator 实例的租户。
--libraryIdentityUrl(Required only for PaaS deployments)身份服务器的 URL。
-y, or --disableTelemetry禁用遥测数据。
--traceLevel显示事件的跟踪。
-l, or --languageOrchestrator 用户界面中使用的语言。
--disableBuiltInNugetFeeds禁用内置 NuGet 订阅源。
--help显示此命令的参数和示例。
--version显示版本信息。
Project(s) Path (pos. 0) (必填)project.json文件或包含project.json文件的文件夹的路径。

用法:

package pack <project_path> -o <destination_folder> [-v <version>] [--autoVersion] [--outputType <Process|Library|Tests|Objects>] [--libraryOrchestratorUrl <orchestrator_url> --libraryOrchestratorTenant <orchestrator_tenant>] [--libraryOrchestratorUsername <orchestrator_user> --libraryOrchestratorPassword <orchestrator_pass>] [--libraryOrchestratorAuthToken <auth_token> --libraryOrchestratorAccountName <account_name>] [--libraryOrchestratorFolder <folder>] [-l <language>]
package pack <project_path> -o <destination_folder> [-v <version>] [--autoVersion] [--outputType <Process|Library|Tests|Objects>] [--libraryOrchestratorUrl <orchestrator_url> --libraryOrchestratorTenant <orchestrator_tenant>] [--libraryOrchestratorUsername <orchestrator_user> --libraryOrchestratorPassword <orchestrator_pass>] [--libraryOrchestratorAuthToken <auth_token> --libraryOrchestratorAccountName <account_name>] [--libraryOrchestratorFolder <folder>] [-l <language>]

示例:

  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package"
  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" -v 1.0.6820.22047
  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" --autoVersion
  • package pack "C:\UiPath\Project" -o "C:\UiPath\Package"
  • package pack "C:\UiPath\Project\project.json" -o "C:\UiPath\Package" --outputType Tests -l en-US

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新