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兼容。

配置

作业参数

描述

包名称

要删除的包的名称。

程序包版本

要删除的包的版本。

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'
            )

            UiPathSolutionDeletePackage(
                packageName: 'Name of the package',
                packageVersion: 'Version of the package',
                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'
            )

            UiPathSolutionDeletePackage(
                packageName: 'Name of the package',
                packageVersion: 'Version of the package',
                orchestratorAddress: 'OrchestratorUrl',
                orchestratorTenant: 'Tenant name',
                credentials: orchestratorCredentials,
                traceLevel: 'Information',
            )
        }
      }
    }
  }
}
  • 配置
  • 管道示例

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新