Redaguoti

Bendrinti naudojant


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.

Syntax

# 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.
# 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 account/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.

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 Service Connection
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 2.144.0 or greater
Task category Package
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 2.115.0 or greater
Task category Package
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