Nu Get Publish Step
A NuGet publish step to run nuget push command
Example. Publishes "target/app.nupkg" NuGet package to "https://api.nuget.org/v3/index.json" NuGet feed. Uses the specified API key for the publishing. Note: instead of an actual API key a token should be provided.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nuGetPublish {
toolPath = "%teamcity.tool.NuGet.CommandLine.DEFAULT%"
packages = "target/app.nupkg"
serverUrl = "https://api.nuget.org/v3/index.json"
apiKey = "<a token for an API key>"
}
Content copied to clipboard }
}See also
Properties
Optional collection of build step execution conditions
Build step execution mode
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
A list of records, each field of an item stored as a parameter of its own: parameter f of the n-th item, counting from 1, is stored as name.n.f. A script fills the list in the block of the parameter, see RecordList.
A record, each field stored as a parameter of its own: parameter f of the record is stored as name.f. A script fills the record in the block of the parameter; a record without parameters stores nothing.
Validates this object and reports found errors to the provided consumer