cicd-integrations
2024.10
true
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

CI/CD 集成用户指南

上次更新日期 2025年7月4日

Packing projects into a package

先决条件

  • 创建项目。
  • 运行 CLI exe (适用于 Windows)或dll (适用于 Linux)文件。
  • 添加所需的 Orchestrator API 访问应用程序作用域
    备注:

    您也可以在本地创建包,而无需 Orchestrator 作用域。

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

  1. 使用uipcli package运行package任务。您可以注意可用子任务的列表。
  2. 指定所需参数并运行pack子任务。

    下表描述了必需参数。

备注:

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

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

参数

描述

-o--output必填项

目标文件夹路径。

-v--version

设置包版本。

--autoVersion

自动生成包版本。

--outputType

强制输出为指定的类型。

--splitOutput

启用到运行时库和设计库的输出拆分。

--repositoryUrl

项目进行版本控制时所在的存储库 URL。

--repositoryCommit

从中提交构建项目的存储库。

--repositoryBranch

从中构建项目的存储库分支。

--repositoryType

VCS 系统存储库类型。

--projectUrl

Automation Hub 概念 URL。

--releaseNotes

添加发行说明。

-u--libraryOrchestratorUsername (*)

(如果您通过用户名和密码使用基本身份验证,则为必填项)

用于向 Orchestrator 进行身份验证的用户名。 您必须将其与相应的密码配对。

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的

-p--libraryOrchestratorPassword (*)

(如果您通过用户名和密码使用基本身份验证,则为必填项)

用于对 Orchestrator 进行身份验证的密码。您必须将其与相应的用户名配对。

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的

-t--libraryOrchestratorAuthToken (*)

(如果您使用基于令牌的身份验证,则为必填项

用于对 Orchestrator 进行身份验证的 OAuth2 刷新令牌 。 您必须将其与 Account NameClient ID配对。

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的

-a--libraryOrchestratorAccountName (*)

(如果您使用基于令牌的身份验证,则为必填项

Orchestrator CloudRPA 帐户名称。 您必须将其与 OAuth2 刷新令牌客户端 ID配对。

如果您的包引用 Orchestrator 订阅源中的库,则这是必需的

-A--libraryOrchestratorAccountForApp (*)

Orchestrator CloudRPA 帐户名称(组织名称)。您必须将其与外部应用程序的应用程序 ID应用程序密码应用程序作用域配对

如果包从 Orchestrator 订阅源引用库,则这是必需的。

-I--libraryOrchestratorApplicationId (*)

(如果使用外部应用程序身份验证,则为必填项

外部应用程序 ID。您必须将其与“应用程序帐户”、“应用程序密码”和“应用程序作用域”配对。

如果包从 Orchestrator 订阅源引用库,则这是必需的。

-S--libraryOrchestratorApplicationSecret (*)

(如果使用外部应用程序身份验证,则为必填项

外部应用程序密码。您必须将其与“应用程序帐户”、“应用程序 ID”和“应用程序作用域”配对。

如果包从 Orchestrator 订阅源引用库,则这是必需的。

--libraryOrchestratorApplicationScope (*)

(如果使用外部应用程序身份验证,则为必填项

应用程序作用域列表,以单个空格分隔。您必须将其与外部应用程序的应用程序账号应用程序 ID应用程序密码配对

如果包从 Orchestrator 订阅源引用库,则这是必需的。

--libraryOrchestratorFolder (*)

目标 Orchestrator 文件夹的名称。

要输入子文件夹,请确保同时输入父文件夹的名称和子文件夹的名称。例如,AccountingTeam\TeamJohn
--libraryOrchestratorUrl (*)

Orchestrator 实例的 URL。

--libraryOrchestratorTenant (*)

要删除计算机的 Orchestrator 实例的租户。

--libraryIdentityUrl(Required for PaaS or MSI deployments)
身份服务器的 URL。

--traceLevel

显示事件的跟踪。

-l--language

Orchestrator 用户界面中使用的语言。

--disableBuiltInNugetFeeds

禁用内置 NuGet 订阅源。

Project(s) Path (pos. 0) (必填) project.json文件或包含project.json文件的文件夹的路径。

用法:

uipcli package pack <project_path> -o <destination_folder> [-v <version>] [--autoVersion] [--outputType <Process|Library|Tests|Objects>] [--libraryOrchestratorUrl <orchestrator_url> --libraryOrchestratorTenant <orchestrator_tenant>] [--u <orchestrator_user> --p <orchestrator_pass>] [--t <auth_token> --a <account_name>] [-A <organization_name> -I <application_id> -S <application_secret> --libraryOrchestratorApplicationScope <application_scope>] [--libraryIdentityUrl <identity_url>] [--libraryOrchestratorFolder <folder_name>] [-l <language>] [--splitOutput] [--repositoryUrl <repository_url>] [--repositoryCommit <repository_commit>] [--repositoryBranch <repository_branch>] [--repositoryType <repository_type>] [--projectUrl <automation_hub_idea_url>] [--releaseNotes <release_notes>] [--disableBuiltInNugetFeeds]  [--traceLevel <None|Critical|Error|Warning|Information|Verbose>]uipcli package pack <project_path> -o <destination_folder> [-v <version>] [--autoVersion] [--outputType <Process|Library|Tests|Objects>] [--libraryOrchestratorUrl <orchestrator_url> --libraryOrchestratorTenant <orchestrator_tenant>] [--u <orchestrator_user> --p <orchestrator_pass>] [--t <auth_token> --a <account_name>] [-A <organization_name> -I <application_id> -S <application_secret> --libraryOrchestratorApplicationScope <application_scope>] [--libraryIdentityUrl <identity_url>] [--libraryOrchestratorFolder <folder_name>] [-l <language>] [--splitOutput] [--repositoryUrl <repository_url>] [--repositoryCommit <repository_commit>] [--repositoryBranch <repository_branch>] [--repositoryType <repository_type>] [--projectUrl <automation_hub_idea_url>] [--releaseNotes <release_notes>] [--disableBuiltInNugetFeeds]  [--traceLevel <None|Critical|Error|Warning|Information|Verbose>]

示例:

  • uipcli package pack "C:\userprofile\AutomationProject\project.json" --traceLevel Information -o "C:\userprofile\Packages\Output"

  • uipcli package pack "C:\userprofile\AutomationProject\project.json" --traceLevel Information -o "C:\userprofile\Packages\Output" --libraryOrchestratorUrl "https://orch-23-10-paas.cloudapp.azure.com/" --libraryOrchestratorTenant "TenantName" -u "orchestratorUsername" -p "********" --orchestratorFolder "FolderName"

  • uipcli package pack "C:\userprofile\AutomationProject\project.json" --traceLevel Information -o "C:\userprofile\Packages\Output" --libraryOrchestratorUrl "https://orch-23-10-paas.cloudapp.azure.com/" --libraryOrchestratorTenant "TenantName" -A "organizationName" -I "76000552-3e4f-4590-9317-cdb420001f1d" -S "********" --libraryOrchestratorApplicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" --libraryOrchestratorFolder "FolderName" --libraryIdentityUrl "https://orch-23-10-paas.cloudapp.azure.com/identity"

  • uipcli package pack "C:\userprofile\AutomationProject\project.json" --traceLevel Information -o "C:\userprofile\Packages\Output" --libraryOrchestratorUrl "https://automation-suite.base.url.com/" --libraryOrchestratorTenant "TenantName" -A "organizationName" -I "3f6239b9-e0e8-465e-a429-d9ffd1d9e57a" -S "********" --libraryOrchestratorApplicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" --libraryOrchestratorFolder "FolderName"

  • uipcli package pack "C:\userprofile\AutomationProject\project.json" --traceLevel Information -o "C:\userprofile\Packages\Output" --libraryOrchestratorUrl "https://cloud.uipath.com/" --libraryOrchestratorTenant "TenantName" -A "organizationName" -I "becc663c-8f1e-409a-a75f-c00330d80bc8" -S "********" --libraryOrchestratorApplicationScope "OR.Folders OR.BackgroundTasks OR.TestSets OR.TestSetExecutions OR.TestSetSchedules OR.Settings.Read OR.Robots.Read OR.Machines.Read OR.Execution OR.Assets OR.Users.Read OR.Jobs OR.Monitoring" --libraryOrchestratorFolder "FolderName"

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2025 UiPath。保留所有权利。