jetbrains.buildServer.configs.kotlin.v2018_1.buildSteps / AntBuildStep

AntBuildStep

open class AntBuildStep : BuildStep

A build step running ant script

See Also

ant

Types

CoverageEngine

sealed class CoverageEngine : CompoundParam<CoverageEngine>

ImagePlatform

enum class ImagePlatform

Docker image platforms

Mode

sealed class Mode : CompoundParam<Mode>

TestPolicy

enum class TestPolicy

Tests reordering policy

Constructors

<init>

AntBuildStep(init: AntBuildStep.() -> Unit)AntBuildStep()

A build step running ant script

Properties

antArguments

var antArguments: String?

Space-separated list of additional arguments for ant

antHome

var antHome: String?

Path to ant distribution on the agent, specify it when you want to use custom ant instead of the bundled ant 1.9.7

coverageEngine

var coverageEngine: CoverageEngine?

Specifies coverage engine to use

dockerImage

var dockerImage: String?

Specifies which Docker image to use for running this build step. I.e. the build step will be run inside specified docker image, using 'docker run' wrapper.

dockerImagePlatform

var dockerImagePlatform: ImagePlatform?

Specifies which Docker image platform will be used to run this build step.

dockerPull

var dockerPull: Boolean?

If enabled, "docker pull image" will be run before docker run.

dockerRunParameters

var dockerRunParameters: String?

Additional docker run command arguments

jdkHome

var jdkHome: String?

Custom JDK to use. The default is JAVA_HOME environment variable or the agent's own Java.

jvmArgs

var jvmArgs: String?

Space-separated list of additional arguments for JVM

mode

var mode: Mode?

Specifies what ant script will be executed

reduceTestFeedback

var reduceTestFeedback: TestPolicy?

Whether TeamCity should reorder tests to reduce test feedback

targets

var targets: String?

Space-separated list of ant targets to execute

workingDir

var workingDir: String?

Build working directory for ant script, specify it if it is different from the checkout directory.

Inherited Properties

conditions

var conditions: BuildStepConditions

Optional collection of build step execution conditions

enabled

var enabled: Boolean

Specifies whether the step is enabled, true by default

executionMode

var executionMode: ExecutionMode

Build step execution mode

id

var id: String?

Id of the step, if not specified will be generated

name

var name: String

Build step name

type

var type: String

Build step type

Functions

antFile

fun antFile(init: AntFile.() -> Unit = {}): AntFile

Executes the ant script at the given path

antScript

fun antScript(init: AntScript.() -> Unit = {}): AntScript

Executes the ant script with the given content

emma

fun emma(init: Emma.() -> Unit = {}): Emma

Emma coverage engine Emma is out of date and it does not support Java 8. Consider using IntelliJ IDEA or JaCoCo coverage runners. Add a 'clean' target to your Ant build for this coverage runner to work.

idea

fun idea(init: Idea.() -> Unit = {}): Idea

jacoco

fun jacoco(init: Jacoco.() -> Unit = {}): Jacoco

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

clearConditions

fun clearConditions(): Unit

Deletes all configured build step conditions

conditions

fun conditions(init: BuildStepConditions.() -> Unit = {}): Unit

Configures build step conditions

create

open fun create(): BuildStep

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.

toString

open fun toString(): String