jetbrains.buildServer.configs.kotlin.v2017_2.failureConditions / BuildFailureOnText

BuildFailureOnText

open class BuildFailureOnText : FailureCondition

A build failure condition failing build on specific text in a build log.

See Also

failOnText

Types

ConditionType

enum class ConditionType

Defines how to treat the pattern specified in failure condition

Constructors

<init>

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

A build failure condition failing build on specific text in a build log.

Properties

conditionType

var conditionType: ConditionType?

A type defining how to treat the specified pattern

failureMessage

var failureMessage: String?

The message to display in the UI and the build log when build fails

pattern

var pattern: String?

The pattern to search for in the build log. Pattern interpretation depends on the selected conditionType.

reverse

var reverse: Boolean?

Whether the matching should be reversed, ie. the build should fail if build log doesn't contain the specified pattern.

stopBuildOnFailure

var stopBuildOnFailure: Boolean?

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

Functions

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

toString

open fun toString(): String