jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions / BuildFailureOnMetric

BuildFailureOnMetric

open class BuildFailureOnMetric : FailureCondition

A build failure condition failing build on metric change.

See Also

failOnMetricChange

Types

CompareTo

sealed class CompareTo : CompoundParam<CompareTo>

MetricComparison

enum class MetricComparison

A type of metric change

MetricType

enum class MetricType

A type of the metric

MetricUnit

enum class MetricUnit

Specifies how to treat the threshold specified in the failure condition

Constructors

<init>

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

A build failure condition failing build on metric change.

Properties

compareTo

var compareTo: CompareTo?

Specifies which value should be compared to the metric value in the build

comparison

var comparison: MetricComparison?

On which type of metric change a build should fail

metric

var metric: MetricType?

Type of the metric

stopBuildOnFailure

var stopBuildOnFailure: Boolean?

Immediately stop the build if it fails due to this failure condition

threshold

var threshold: Int?

Threshold for build failure. A build will fail when a metric is changed more significantly than the specified threshold. Threshold change is treated according to the selected units. If not specified, the default value 1 is used.

units

var units: MetricUnit?

Specifies the unit of the given threshold (default metric units or percents)

Functions

build

fun build(init: Build.() -> Unit = {}): Build

The metric value in the build should be compared to the metric value from a build matched by the rule

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

value

fun value(): Value

The metric value in the build should be compared to the threshold

Inherited Functions

toString

open fun toString(): String