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

CI/CD 集成用户指南

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

UiPath 运行作业

您可以使用此任务来执行已在 Orchestrator 实例上部署的流程。有关更多信息,请参见流程作业

配置

使用下表配置“UiPath 运行作业”输入。

输入描述
显示名称是必填项 输入租户的名称。
需要 Orchestrator 连接 配置服务连接以访问 UiPath Orchestrator 服务。您只能为此步骤配置连接,也可以使用现有的全局连接。有关更多信息,请参阅“配置 UiPath Orchestrator 服务连接”。
流程(必填) 流程是链接到特定文件夹类型的包版本。 您需要根据部署流程的文件夹类型配置此输入。对于新式文件夹,输入是“流程”选项卡中列出的流程名称。 要找出流程名称,您可以打开 Orchestrator,打开您的文件夹,然后导航到“自动化” >“流程”。对于传统文件夹(已弃用),输入的内容是流程名称的名称,后跟下划线,然后是环境名称,即托管机器人的地方。作为此命名约定的示例,请考虑以下变量:流程的名称为TestAutomation 。 环境的名称为Production 。此输入的流程名称为TestAutomation_Production
输入参数指定 JSON 输入文件的文件路径,例如Input\jobParameters.json

JSON 文件格式示例:

{
  "StringArgument_In": "MyConfigurationValue",
  "IntArgument_In": 1,
  "DictionaryArgument_In": {
    "Key1": "Value1",
    "Key2": "Value2"
  }
}{
  "StringArgument_In": "MyConfigurationValue",
  "IntArgument_In": 1,
  "DictionaryArgument_In": {
    "Key1": "Value1",
    "Key2": "Value2"
  }
}
优先级如果要在流程级别设置特定顺序,请选择作业执行的优先级。默认情况下,系统设置为 Normal
Orchestrator 文件夹(必需) 指定正在部署流程的文件夹。对于传统文件夹,您可以使用指定的机器人名称。对于新式文件夹,您可以使用指定的用户和计算机名称。

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

策略指定动态分配或特定于机器人的执行策略。对于动态分配的作业,将在可用的帐户和计算机下执行流程或者,您可以选择特定于机器人的作业。
作业类型 仅适用于新式文件夹。选择要用于执行作业的运行时的许可模式。有关更多信息,请参阅“关于许可章节”。
作业数 仅适用于动态分配策略。指定要运行此任务的次数。 默认情况下,此输入设置为1
用户 仅与动态分配策略一起在新式文件夹中可用。添加计算机用户名。例如,此输入的本地用户为 MachineName\UserName
计算机 仅与动态分配策略一起在新式文件夹中可用。运行执行的计算机的名称。
输出结果收集在 JSON 文件中。您需要指定作业结果的路径(例如Output\testResults.json)。如果将此输入留空,则默认输出将发送到以下名称的工件登台目录UiPathResults.json
超时指定请求超时前要等待的秒数。
作业失败时失败的任务如果要在至少一个作业失败时将任务设置为失败,请选择此输入。默认情况下未选中此选项。
等待作业完成等待作业运行结束。默认情况下未选中此选项。
追踪级别从下拉列表中选择用户。
机器人 ID指定机器人名称的逗号分隔列表。
docs image

YAML 管道

您可以为 UiPath 运行作业预览完全解析的 YAML 文档。
- task: UiPathRunJob@2
  displayName: 'Start ProcessProject'
  inputs:
    #orchestratorConnection: 'service-connection-name' # Service connection to UiPath Orchestrator
    #processName: 'ProccessProject_CI-Pipeline' # The name of the process
    #parametersFilePath: 'Input\\jobParameters.json' # json file with input values if the process requires them
    #priority: 'Low' # Options 'Low', 'Normal', 'High'
    #folderName: 'MyFolder' # Specify the folder to deploy to. For clasic folders, you can use specific robot names. For modern folders, you can use specific user and machine names.
    #strategy: 'Dynamically' # Options 'Specific', 'Dynamically'
    #jobCount: 1 # The number of job runs. (default 1) - used if strategy is 'Dynamically'
    #user: 'MyUser'
    #machine: 'machine'
    #robotsIds: 'robot1, robot2'
    #resultFilePath: 'Output\\testResults.json'
    #timeout: 3600
    #failWhenJobFails: false
    #waitForJobCompletion: false,
    #traceLevel: 'None' # Options: Critical, Error, Warning, Information, Verbose, None- task: UiPathRunJob@2
  displayName: 'Start ProcessProject'
  inputs:
    #orchestratorConnection: 'service-connection-name' # Service connection to UiPath Orchestrator
    #processName: 'ProccessProject_CI-Pipeline' # The name of the process
    #parametersFilePath: 'Input\\jobParameters.json' # json file with input values if the process requires them
    #priority: 'Low' # Options 'Low', 'Normal', 'High'
    #folderName: 'MyFolder' # Specify the folder to deploy to. For clasic folders, you can use specific robot names. For modern folders, you can use specific user and machine names.
    #strategy: 'Dynamically' # Options 'Specific', 'Dynamically'
    #jobCount: 1 # The number of job runs. (default 1) - used if strategy is 'Dynamically'
    #user: 'MyUser'
    #machine: 'machine'
    #robotsIds: 'robot1, robot2'
    #resultFilePath: 'Output\\testResults.json'
    #timeout: 3600
    #failWhenJobFails: false
    #waitForJobCompletion: false,
    #traceLevel: 'None' # Options: Critical, Error, Warning, Information, Verbose, None
  • 配置
  • YAML 管道

此页面有帮助吗?

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