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 周的时间才能完成。

将资产部署到 Orchestrator

Prerequisites:

  • 创建一个 CSV 文件,其中包含要部署到 Orchestrator 的资产。

    CSV 文件必须包含以下列三列: name 、 type 、 value和description 。

  • 运行 CLI exe (适用于 Windows)或dll (适用于 Linux)文件。

  • Add the required Orchestrator API access application scopes.

有关 CSV 文件的详细信息,请参阅下面的示例。

name类型值描述
asset_1_nametext“我有意见”asset_1_description
asset_2_name整数1asset_2_description
asset_3_nameBoolfalseasset_3_description
asset_4_name凭据username:passwordasset_4_description

要将资产部署到 Orchestrator,请执行以下步骤:

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

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

    请参阅下面的参数列表。

    参数 描述

    -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 或 --accountForApp

    The 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 或 --organizationUnit

    Orchestrator 文件夹(组织单元)的名称。

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

    -l 或 --language

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

    -y 或 --disableTelemetry

    禁用遥测数据。

    --traceLevel

    显示事件的跟踪。

    --identityUrl (Required only for PaaS deployments)

    身份服务器的 URL。

    --help

    显示此命令的参数和示例。

    --version

    显示版本信息。

    Assets File (pos. 0) (Required) 包含要删除的资产的 CSV 文件的名称。
    Orchestrator URL (pos.1) (Required) Orchestrator 实例的 URL。

    Orchestrator Tenant (pos.2)

    • (Required) for SaaP deployments.
    • (Optional) for PaaS deployments.
    要在其中管理资产的 Orchestrator 实例的租户。

用法:

asset deploy <assets_file> <orchestrator_url> <orchestrator_tenant> [-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>] [-l <language>]
asset deploy <assets_file> <orchestrator_url> <orchestrator_tenant> [-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>] [-l <language>]

示例:

  • asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -l en-US。
  • asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -u admin -p 123456 -o OurOrganization。
  • asset deploy assets_file.csv "https://uipath-orchestrator.myorg.com" default -t a7da29a2c93a717110a82 -a myAccount。
  • asset delete assets_file.csv "https://uipath-orchestrator.myorg.com" default -A accountForExternalApp -I myExternalAppId -S myExternalAppSecret --applicationScope "OR.Folders.Read OR.Settings.Read"。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新