NuGetPackStep
A NuGet pack step to run nuget pack command
Example. Creates NuGet packages according to provided .nuspec files. Uses the default NuGet tool version installed on the TeamCity server. Publishes created packages as TeamCity artifacts.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nuGetPack {
toolPath = "%teamcity.tool.NuGet.CommandLine.DEFAULT%"
paths = """
main-packages/packages.nuspec
supplemental/packages.nuspec
""".trimIndent()
outputDir = "target"
cleanOutputDir = true
publishPackages = true
}
Content copied to clipboard }
}
Content copied to clipboard
See also
Constructors
Types
Functions
Link copied to clipboard
fun booleanParameter( customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Deletes all configured build step conditions
Link copied to clipboard
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Configures build step conditions
Link copied to clipboard
Copies parameters of this object to the specified target
Link copied to clipboard
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
Link copied to clipboard
fun customPath(init: NuGetPackStep.BaseDir.CustomPath.() -> Unit = {}): NuGetPackStep.BaseDir.CustomPath
Content copied to clipboard
Link copied to clipboard
fun doubleParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun intParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Use project/.nuspec directory.
Link copied to clipboard
Link copied to clipboard
open fun stringParameter(customName: String? = null): <ERROR CLASS><Parametrized, <ERROR CLASS><Parametrized, T?>>
Content copied to clipboard
Link copied to clipboard
Validates this object and reports found errors to the provided consumer