Sdílet prostřednictvím


NuGetPublisher@0 - NuGet publisher v0 task

NuGetPublisher@0 is 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.

Inputs

searchPattern - Path/Pattern to nupkg
string. Required. Default value: **/*.nupkg;-:**/packages/**/*.nupkg;-:**/*.symbols.nupkg.

The pattern that the task uses to match or path to nupkg files to be uploaded. Multiple patterns can be separated by a semicolon.


nuGetFeedType - Feed type
string. Required. Allowed values: external (External NuGet Feed), internal (Internal NuGet Feed). Default value: external.

Specifies whether the target feed is an internal feed/collection or an external NuGet server.


connectedServiceName - NuGet Server Endpoint
string. Required when nuGetFeedType = external.

Specifies the NuGet server generic service connection. Set the key Password/Token Key field to your NuGet API key.


feedName - Internal Feed URL
string. Required when nuGetFeedType = internal.

Specifies the URL of a NuGet feed hosted in this account.


nuGetAdditionalArgs - NuGet Arguments
string.

The additional arguments passed to NuGet.exe push. Learn more about the push command in the NuGet CLI.


verbosity - Verbosity
string. Allowed values: -, Quiet, Normal, Detailed. Default value: -.

Specifies the amount of detail displayed in the output.


nuGetVersion - NuGet Version
string. Required. Allowed values: 3.3.0, 3.5.0.1829 (3.5.0), 4.0.0.2283 (4.0.0), custom. Default value: 3.3.0.

Specifies the version of NuGet or a custom version to use.


nuGetPath - Path to NuGet.exe
string.

Optional. Supplies the path to NuGet.exe. Will override version selection.


continueOnEmptyNupkgMatch - Continue if no packages match the "Path/Pattern to nupkg"
boolean. Default value: false.

Continues the task instead of failing the task if no packages match the searchPattern string.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands Self-hosted agents must have capabilities that match the following demands to run jobs that use this task: Cmd
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 1.83.0 or greater
Task category Package