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

CI/CD 集成用户指南

上次更新日期 2025年12月10日

UiPath 解决方案下载配置

UiPath 解决方案下载配置任务从 UiPath Orchestrator 下载解决方案配置。这使您可以检索 Orchestrator 中存储的解决方案的环境特定配置文件。

备注:

目前只有 Automation Cloud 支持解决方案。计划在未来版本中提供对 Automation Suite 的支持。本地部署 (MSI) Orchestrator 不支持解决方案。

备注:

此任务仅与** UiPath.CLI.Windows or UiPath.CLI.Linux` 至少版本 25.10 或更高版本兼容。

配置

使用下表配置 UiPath 解决方案下载配置输入。

参数描述
需要 Orchestrator 连接。与 Orchestrator 实例的服务连接。
包名称(必填)Orchestrator 中的解决方案包名称。
Package Version可选。Orchestrator 中的解决方案包版本。如果未指定,则将使用最新版本。
目标路径(必填)已下载的配置文件将保存到的本地路径。
Filename可选。将下载的配置保存到的本地文件名(包含扩展名)。最终路径将连接目标路径和文件名。
文件格式要下载的配置文件的格式。默认值: json 。选项: jsonyaml
追踪级别追踪日志记录级别。默认值: Error 。选项: NoneCriticalErrorWarningInformationVerbose

注意

  • 配置管理: 此任务会检索 Orchestrator 中存储的解决方案配置文件,以在部署中使用
  • 特定于环境的配置:可用于下载适用于各种环境(开发、测试、生产)的不同配置文件
  • 格式灵活性: 支持 JSON 和 YAML 配置格式
  • 版本控制: 可以下载特定包版本或最新版本的配置
  • 本地存储: 将配置下载到本地文件系统,以在后续管道任务中使用
  • Orchestrator 连接: 需要与目标 Orchestrator 实例建立有效的服务连接
  • CLI 兼容性:此任务在内部使用 UiPath CLI,需要在构建代理上正确安装 CLI
  • 最低 CLI 版本:需要 UiPath CLI 版本 25.10 或更高版本才能完全兼容
  • 集成就绪: 下载的配置可与部署任务一起使用,以实现特定于环境的部署

管道示例

基本配置下载

- task: UiPathSolutionDownloadConfig@6
  displayName: 'Download Solution Configuration'
  inputs:
    orchestratorConnection: 'UiPath-Orchestrator-Connection'
    packageName: 'MySolution'
    destinationPath: '$(Build.ArtifactStagingDirectory)/configs'
    traceLevel: 'Information'
- task: UiPathSolutionDownloadConfig@6
  displayName: 'Download Solution Configuration'
  inputs:
    orchestratorConnection: 'UiPath-Orchestrator-Connection'
    packageName: 'MySolution'
    destinationPath: '$(Build.ArtifactStagingDirectory)/configs'
    traceLevel: 'Information'

连接了 Orchestrator 和特定版本

- task: UiPathSolutionDownloadConfig@6
  displayName: 'Download Production Configuration'
  inputs:
    orchestratorConnection: 'Production-Orchestrator'
    packageName: 'MyBusinessSolution'
    packageVersion: '2.1.$(Build.BuildNumber)'
    destinationPath: '$(Build.SourcesDirectory)/configs'
    filename: 'production-config.json'
    format: 'json'
    traceLevel: 'Verbose'
- task: UiPathSolutionDownloadConfig@6
  displayName: 'Download Production Configuration'
  inputs:
    orchestratorConnection: 'Production-Orchestrator'
    packageName: 'MyBusinessSolution'
    packageVersion: '2.1.$(Build.BuildNumber)'
    destinationPath: '$(Build.SourcesDirectory)/configs'
    filename: 'production-config.json'
    format: 'json'
    traceLevel: 'Verbose'

完整管道:下载配置并部署

variables:
  solutionName: 'MyBusinessSolution'
  solutionVersion: '1.$(Date:yyyy).$(DayOfYear)$(Rev:.r)'
  environmentName: 'Production'

steps:
- task: UiPathSolutionDownloadConfig@6
  displayName: 'Download $(environmentName) Configuration'
  inputs:
    orchestratorConnection: 'Production-Orchestrator'
    packageName: '$(solutionName)'
    packageVersion: '$(solutionVersion)'
    destinationPath: '$(Build.ArtifactStagingDirectory)/configs'
    filename: '$(environmentName)-config.yaml'
    format: 'yaml'
    traceLevel: 'Information'

- task: UiPathSolutionDeploy@6
  displayName: 'Deploy Solution with Downloaded Config'
  inputs:
    orchestratorConnection: 'Production-Orchestrator'
    packageName: '$(solutionName)'
    packageVersion: '$(solutionVersion)'
    deploymentName: '$(solutionName)-$(environmentName)-$(Build.BuildNumber)'
    deploymentParentFolder: '$(environmentName)'
    deploymentFolderName: 'BusinessProcesses'
    configPath: '$(Build.ArtifactStagingDirectory)/configs/$(environmentName)-config.yaml'
    traceLevel: 'Information'

- script: echo "Downloaded and used configuration for $(solutionName) v$(solutionVersion)"
  displayName: 'Configuration Summary'
variables:
  solutionName: 'MyBusinessSolution'
  solutionVersion: '1.$(Date:yyyy).$(DayOfYear)$(Rev:.r)'
  environmentName: 'Production'

steps:
- task: UiPathSolutionDownloadConfig@6
  displayName: 'Download $(environmentName) Configuration'
  inputs:
    orchestratorConnection: 'Production-Orchestrator'
    packageName: '$(solutionName)'
    packageVersion: '$(solutionVersion)'
    destinationPath: '$(Build.ArtifactStagingDirectory)/configs'
    filename: '$(environmentName)-config.yaml'
    format: 'yaml'
    traceLevel: 'Information'

- task: UiPathSolutionDeploy@6
  displayName: 'Deploy Solution with Downloaded Config'
  inputs:
    orchestratorConnection: 'Production-Orchestrator'
    packageName: '$(solutionName)'
    packageVersion: '$(solutionVersion)'
    deploymentName: '$(solutionName)-$(environmentName)-$(Build.BuildNumber)'
    deploymentParentFolder: '$(environmentName)'
    deploymentFolderName: 'BusinessProcesses'
    configPath: '$(Build.ArtifactStagingDirectory)/configs/$(environmentName)-config.yaml'
    traceLevel: 'Information'

- script: echo "Downloaded and used configuration for $(solutionName) v$(solutionVersion)"
  displayName: 'Configuration Summary'
  • 配置
  • 注意
  • 管道示例
  • 基本配置下载
  • 连接了 Orchestrator 和特定版本
  • 完整管道:下载配置并部署

此页面有帮助吗?

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