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

UiPath 解决方案下载包

通过 Jenkins 从 Orchestrator 检索上传的解决方案包的“UiPath 解决方案下载包”步骤。

应用程序:解决方案

类型:构建后任务

UiPath 解决方案:“下载包”在标准作业和管道中可用,可用于从 Orchestrator 实例删除现有的 UiPath 解决方案包。

备注:

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

备注:

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

配置

作业参数

描述

包名称

要下载的包的名称。

目标路径

待下载包的路径。

程序包版本

待下载包的可选版本。

目标文件名

用于设置包文件的特定名称的可选参数。如果省略,则系统将使用包名称。

Orchestrator 地址

您要从中删除包的 Orchestrator 实例的地址。

Orchestrator 租户

指定 Orchestrator 租户。

身份验证

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

追踪级别

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

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

    可用于调试目的。

管道示例

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

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

            UiPathSolutionDownloadPackage(
                packageName: 'Name of the package',
                packageVersion: '1.2.3',
                destinationPath: 'destination/path',
                fileName: 'Local file name',
                orchestratorAddress: 'OrchestratorUrl',
                orchestratorTenant: 'Tenant name',
                credentials: orchestratorCredentials,
                traceLevel: 'Information',
            )
        }
      }
    }
  }
}
  • 配置
  • 管道示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新