NuGetPublisher@0 - NuGet 发布者 v0 任务

NuGetPublisher@0已弃用。 请改用“NuGet”任务。 它适用于新的工具安装程序框架,因此,无需等待任务更新即可轻松使用新版本的 NuGet,从而更好地支持此组织/集合外部经过身份验证的源,并默认使用 NuGet 4。

语法

# NuGet publisher v0
# Deprecated: use the “NuGet” task instead. It works with the new Tool Installer framework so you can easily use new versions of NuGet without waiting for a task update, provides better support for authenticated feeds outside this organization/collection, and uses NuGet 4 by default.
- task: NuGetPublisher@0
  inputs:
    searchPattern: '**/*.nupkg;-:**/packages/**/*.nupkg;-:**/*.symbols.nupkg' # string. Required. Path/Pattern to nupkg. Default: **/*.nupkg;-:**/packages/**/*.nupkg;-:**/*.symbols.nupkg.
    nuGetFeedType: 'external' # 'external' | 'internal'. Required. Feed type. Default: external.
    connectedServiceName: # string. Required when nuGetFeedType = external. NuGet Service Connection. 
    #feedName: # string. Required when nuGetFeedType = internal. Internal Feed URL. 
  # Advanced
    #nuGetAdditionalArgs: # string. NuGet Arguments. 
    #verbosity: '-' # '-' | 'Quiet' | 'Normal' | 'Detailed'. Verbosity. Default: -.
    nuGetVersion: '3.3.0' # '3.3.0' | '3.5.0.1829' | '4.0.0.2283' | 'custom'. Required. NuGet Version. Default: 3.3.0.
    #nuGetPath: # string. Path to NuGet.exe. 
    #continueOnEmptyNupkgMatch: false # boolean. Continue if no packages match the "Path/Pattern to nupkg". Default: false.

输入

searchPattern - nupkg 的路径/模式
string。 必填。 默认值:**/*.nupkg;-:**/packages/**/*.nupkg;-:**/*.symbols.nupkg

任务用来匹配或路径 nupkg 要上传的文件的模式。 多个模式可以用分号分隔。


nuGetFeedType - 源类型
string。 必填。 允许的值:external(外部 NuGet 源)、internal(内部 NuGet 源)。 默认值:external

指定目标源是内部源/集合还是外部 NuGet 服务器。


connectedServiceName - NuGet 服务连接
stringnuGetFeedType = external时是必需的。

指定 NuGet 服务器通用服务连接。 将密钥 Password/Token Key 字段设置为 NuGet API 密钥。


feedName - 内部源 URL
stringnuGetFeedType = internal时是必需的。

指定在此帐户中托管的 NuGet 源的 URL。


nuGetAdditionalArgs - NuGet 参数
string

传递给 NuGet.exe push的其他参数。 详细了解 NuGet CLI 中的推送命令。


verbosity - 详细程度
string。 允许的值:-QuietNormalDetailed。 默认值:-

指定输出中显示的详细信息量。


nuGetVersion - NuGet 版本
string。 必填。 允许的值:3.3.03.5.0.1829(3.5.0)、4.0.0.2283(4.0.0),custom。 默认值:3.3.0

指定要使用的 NuGet 版本或自定义版本。


nuGetPath - NuGet.exe 的路径
string

可选。 提供 NuGet.exe的路径。 将替代版本选择。


如果没有任何包与“Path/Pattern to nupkg”匹配,则 continueOnEmptyNupkgMatch - 继续
boolean。 默认值:false

如果没有任何包与 searchPattern 字符串匹配,则继续执行任务,而不是失败任务。


任务控制选项

除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性

输出变量

没有。

要求

要求 说明
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
需求 自承载代理必须具有与以下 要求 运行使用此任务的作业 功能: Cmd
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 2.144.0 或更高版本
任务类别 封装件
要求 说明
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
需求 自承载代理必须具有与以下 要求 运行使用此任务的作业 功能: Cmd
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 2.115.0 或更高版本
任务类别 封装件