UiPath Documentation
cicd-integrations
2025.10
true
CI/CD 集成用户指南
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

UiPath 解决方案下载配置

应用程序:解决方案

类型:构建后任务

UiPath 解决方案:“下载配置”可在标准作业和管道中使用,用于下载已上传到 Orchestrator 实例的 UiPath 解决方案包的配置。可以使用稍后用于部署的密码值编辑此配置。

备注:

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

备注:

此任务仅与版本 25.10 或更高版本的UiPath.CLI.WindowsUiPath.CLI.Linux兼容。

配置

作业参数

描述

包名称

将下载其配置的包名称。

目标路径

待下载配置文件的路径。

Package Version

即将下载其配置的包的可选版本。如果省略,则将下载最新版本的配置。

目标文件名

可选参数,用于为文件设置不带扩展名的特定名称。如果省略此名称,则使用包名称。

格式

配置文件的格式。默认值为 yaml,但您也可以指定 json 格式。

Orchestrator 地址

您将从中下载配置的 Orchestrator 实例的地址。

Orchestrator 租户

指定 Orchestrator 租户。

身份验证

对于面向 Automation Cloud Orchestrator 的身份验证,您需要预先在 Jenkins 中创建凭据。解决方案仅支持外部应用程序身份验证。有关创建外部应用程序和获取所需凭据的详细信息,请参阅管理外部应用程序

追踪级别

用于启用跟踪日志记录的设置为以下级别之一:

  • 重要事项
  • 错误
  • Warning
  • 信息
  • 详情。(默认设置为)。

    可用于调试目的。

管道示例

pipeline {
  agent any
  environment {
      MAJOR = '1'
      MINOR = '0'
  }
  stages {
    stage ('Download Package Config File') {
      steps {
        script {
            orchestratorCredentials = ExternalApp(
                applicationId: 'External application identifier',
                applicationScope: 'AutomationSolutions Solutions.Deployments Solutions.Packages',
                applicationSecret: 'External application secret',
                accountForApp: 'Organization identifier'
            )

            UiPathSolutionDownloadConfig(
                packageName: 'Package name',
                destinationPath: 'destination/path',
                packageVersion: '1.2.3',
                fileName: 'Local file name',
                format: 'yaml',
                orchestratorAddress: 'OrchestratorUrl',
                orchestratorTenant: 'Tenant name',
                credentials: orchestratorCredentials,
                traceLevel: 'Information',
            )
        }
      }
    }
  }
}
pipeline {
  agent any
  environment {
      MAJOR = '1'
      MINOR = '0'
  }
  stages {
    stage ('Download Package Config File') {
      steps {
        script {
            orchestratorCredentials = ExternalApp(
                applicationId: 'External application identifier',
                applicationScope: 'AutomationSolutions Solutions.Deployments Solutions.Packages',
                applicationSecret: 'External application secret',
                accountForApp: 'Organization identifier'
            )

            UiPathSolutionDownloadConfig(
                packageName: 'Package name',
                destinationPath: 'destination/path',
                packageVersion: '1.2.3',
                fileName: 'Local file name',
                format: 'yaml',
                orchestratorAddress: 'OrchestratorUrl',
                orchestratorTenant: 'Tenant name',
                credentials: orchestratorCredentials,
                traceLevel: 'Information',
            )
        }
      }
    }
  }
}
  • 配置
  • 管道示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新