NAnt Step
A build step running NAnt scripts
Example. Runs NAnt for specified path, target, target framework and passing an argument
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nant {
mode = nantFile {
path = "MyProject"
}
targets = "Test"
targetFramework = NAntStep.TargetFramework.NET_4_0
args = "-D:arg.abc=bca"
}
Content copied to clipboard }
}
Example. Runs NAnit for specified build file content, target and target framework
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
nant {
mode = nantScript {
content = """
[ put your build file content here ]
""".trimIndent()
}
targets = "build"
targetFramework = NAntStep.TargetFramework.NET_4_0
}
Content copied to clipboard }
}
See also
Types
Properties
Optional collection of build step execution conditions
Specifies coverage tool to use
Build step execution mode
Specifies what Nant script will be executed
Whether TeamCity should run recently failed tests first to reduce test feedback
A required target framework (a shortcut for -t: option of NAnt.exe).
Build working directory for ant script, specify it if it is different from the checkout directory.
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Executes the NAnt script at the given path
Executes the NAnt script with the given content
Validates this object and reports found errors to the provided consumer