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

CI/CD 集成用户指南

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

恢复自动化依赖项

先决条件

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

要恢复依赖项,请执行以下步骤:

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

    下表描述了必需参数:

    参数

    描述

    --restoreFolder

    必填。 还原目标文件夹路径。

    --nugetConfigFilePath

    可选。 包含订阅源的 NuGet.Config 文件的路径。

    -u, --libraryOrchestratorUsername

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 用于身份验证的 Orchestrator 用户名。 必须与密码一起使用。

    -p, --libraryOrchestratorPassword

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 用于身份验证的 Orchestrator 密码。 必须与用户名一起使用。

    -t, --libraryOrchestratorAuthToken

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 用于身份验证的 Orchestrator 刷新令牌。 必须与组织名称和客户端 ID 一起使用。

    -a, --libraryOrchestratorAccountName

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 Orchestrator 组织名称。 必须与刷新令牌和客户端 ID 一起使用。

    -A, --libraryOrchestratorAccountForApp

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 Orchestrator 组织名称。 必须与外部应用程序的 ID、密码和作用域一起使用。

    -I, --libraryOrchestratorApplicationId

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 外部应用程序 ID。 必须与外部应用程序的组织名称、密码和作用域一起使用。

    -S, --libraryOrchestratorApplicationSecret

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 外部应用程序密码。 必须与外部应用程序的组织名称、ID 和作用域一起使用。

    --libraryOrchestratorApplicationScope

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 以空格分隔的应用程序作用域列表。 必须与外部应用程序的组织名称、ID 和密码一起使用。

    --libraryOrchestratorUrl

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 Orchestrator URL。

    --libraryOrchestratorTenant

    可选,仅当您具有来自 Orchestrator 中的库的依赖项时有用。 Orchestrator 租户。

    --libraryIdentityUrl(Required for PaaS or MSI deployments)

    URL of your identity server.

    --traceLevel

    指定要输出以下值之一的日志消息类型: None、Critical、Error、Warning、Information、Verbose。 默认值:“信息”。

    -l, --language

    已翻译日志的语言。

    --disableBuiltInNugetFeeds

    禁用内置 NuGet 订阅源。

    Project(s) Path (pos. 0)

    必填。 project.json文件的路径或包含project.json文件的文件夹的路径。

用法:

uipcli package restore <project_path> --restoreFolder <restore_directory> --nugetConfigFilePath <nuget_config_path> [--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>] [--disableBuiltInNugetFeeds] [--traceLevel <None|Critical|Error|Warning|Information|Verbose>]uipcli package restore <project_path> --restoreFolder <restore_directory> --nugetConfigFilePath <nuget_config_path> [--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>] [--disableBuiltInNugetFeeds] [--traceLevel <None|Critical|Error|Warning|Information|Verbose>]

最小命令示例

  • uipcli package restore "C:\userprofile\AutomationProject" --traceLevel Information --restoreFolder ""C:\userprofile\DependencyPackages" --nugetConfigFilePath "C:\userprofile\Package\NuGet.Config"

  • uipcli package restore "C:\userprofile\AutomationProject" --traceLevel Information --restoreFolder "C:\userprofile\DependencyPackages" --libraryOrchestratorUrl "https://orch-23-10-paas.cloudapp.azure.com/" --libraryOrchestratorTenant "TenantName" -u "orchestratorUsername" -p "********" --orchestratorFolder "FolderName"

  • uipcli package restore "C:\userprofile\AutomationProject" --traceLevel Information --restoreFolder "C:\userprofile\DependencyPackages" --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 restore "C:\userprofile\AutomationProject" --traceLevel Information --restoreFolder "C:\userprofile\DependencyPackages" --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 restore "C:\userprofile\AutomationProject" --traceLevel Information --restoreFolder "C:\userprofile\DependencyPackages" --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。保留所有权利。