jetbrains.buildServer.configs.kotlin.v2018_1 / BuildStep

BuildStep

open class BuildStep : Parametrized, Validatable

Represents TeamCity Build Step

Types

ExecutionMode

enum class ExecutionMode

Specifies how build step should be executed in case of failures in other steps

Constructors

<init>

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

Creates a build step and initializes it with the specified init block

BuildStep()

Represents TeamCity Build Step

Properties

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

Inherited Properties

params

val params: List<Parameter>

Functions

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

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

booleanParameter

fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): SingleDelegateProvider<Boolean>

compoundParameter

fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): CompoundDelegateProvider<T>

copyParamsTo

fun <T : Parametrized> copyParamsTo(target: T): T

Copies parameters of this object to the specified target

enumParameter

fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): SingleDelegateProvider<E>

findRawParam

fun findRawParam(paramName: String): Parameter?

hasParam

fun hasParam(paramName: String): Boolean

intParameter

fun intParameter(customName: String? = null): SingleDelegateProvider<Int>

param

fun param(name: String, value: String): Unit

Adds parameter with specified name and value

removeRawParam

fun removeRawParam(paramName: String): Unit

stringParameter

fun stringParameter(customName: String? = null): SingleDelegateProvider<String>

Inheritors

AntBuildStep

open class AntBuildStep : BuildStep

A build step running ant script

BuildStepPlaceholder

open class BuildStepPlaceholder : BuildStep

Base class for a build step placeholder. Build step placeholder is used in a build configuration template to indicate where the build steps of a configuration will go when it is attached to the template.

DevenvBuildStep

open class DevenvBuildStep : BuildStep

A Visual Studio IDE step to run Visual Studio IDE command

DockerBuildStep

open class DockerBuildStep : BuildStep

Deprecated, was used for Docker Build build step. Please use Docker command runner step instead.

DockerCommandStep

open class DockerCommandStep : BuildStep

A build step for a generic docker command runner (can run Docker build, push, other...)

DockerComposeStep

open class DockerComposeStep : BuildStep

A build step for docker-compose step.

DotnetBuildStep

open class DotnetBuildStep : BuildStep

A dotnet build step to run .NET CLI command

DotnetCleanStep

open class DotnetCleanStep : BuildStep

A dotnet clean step to run .NET CLI command

DotnetMsBuildStep

open class DotnetMsBuildStep : BuildStep

A .NET msbuild step to run .NET MSBuild

DotnetNugetDeleteStep

open class DotnetNugetDeleteStep : BuildStep

A dotnet nuget delete step to run .NET CLI command

DotnetNugetPushStep

open class DotnetNugetPushStep : BuildStep

A dotnet nuget push step to run .NET CLI command

DotnetPackStep

open class DotnetPackStep : BuildStep

A dotnet pack step to run .NET CLI command

DotnetPublishStep

open class DotnetPublishStep : BuildStep

A dotnet publish step to run .NET CLI command

DotnetRestoreStep

open class DotnetRestoreStep : BuildStep

A dotnet restore step to run .NET CLI command

DotnetRunStep

open class DotnetRunStep : BuildStep

A dotnet run step to run .NET CLI command

DotnetTestStep

open class DotnetTestStep : BuildStep

A dotnet test step to run .NET CLI command

DotnetVsTestStep

open class DotnetVsTestStep : BuildStep

A .NET vstest step to run .NET VSTest

ExecBuildStep

open class ExecBuildStep : BuildStep

A build step running the specified executable with given arguments

GradleBuildStep

open class GradleBuildStep : BuildStep

A build step running gradle script

IdeaSettingsBasedRunner

abstract class IdeaSettingsBasedRunner : BuildStep

MSBuildStep

open class MSBuildStep : BuildStep

A build step running MSBuild script

MSTestStep

open class MSTestStep : BuildStep

A build step running MSTest tests

MSpecStep

open class MSpecStep : BuildStep

A build step running MSpec tests

MavenBuildStep

open class MavenBuildStep : BuildStep

A build step running maven

NAntStep

open class NAntStep : BuildStep

A build step running NAnt scripts

NUnitStep

open class NUnitStep : BuildStep

A build step running NUnit tests

NuGetInstallerStep

open class NuGetInstallerStep : BuildStep

A NuGet installer step to run nuget restore command

NuGetPackStep

open class NuGetPackStep : BuildStep

A NuGet pack step to run nuget pack command

NuGetPublishStep

open class NuGetPublishStep : BuildStep

A NuGet publish step to run nuget push command

PowerShellStep

open class PowerShellStep : BuildStep

A build step running PowerShell script

ScriptBuildStep

open class ScriptBuildStep : BuildStep

A build step running a script with the specified content

VSTestStep

open class VSTestStep : BuildStep

A build step running Visual Studio Tests

VisualStudioStep

open class VisualStudioStep : BuildStep

A build step running Visual Studio solution.