jetbrains.buildServer.configs.kotlin.v2018_2.buildFeatures / Notifications

Notifications

open class Notifications : BuildFeature

Build feature for notification rule

See Also

notifications

Types

NotifierSettings

sealed class NotifierSettings : CompoundParam<NotifierSettings>

Constructors

<init>

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

Build feature for notification rule

Properties

branchFilter

var branchFilter: String?

Branch filter

buildFailed

var buildFailed: Boolean?

Send notification if build failed

buildFailedToStart

var buildFailedToStart: Boolean?

Send notification if build fails to start

buildFinishedSuccessfully

var buildFinishedSuccessfully: Boolean?

Send notification if build finished successfully

buildProbablyHanging

var buildProbablyHanging: Boolean?

Build is probably hanging

buildStarted

var buildStarted: Boolean?

Send notification when build started

firstBuildErrorOccurs

var firstBuildErrorOccurs: Boolean?

Notify when the first build error occurs

firstFailureAfterSuccess

var firstFailureAfterSuccess: Boolean?

Send notification if build failed for the first time after success

firstSuccessAfterFailure

var firstSuccessAfterFailure: Boolean?

Send notification if build is successfull for the first time after failure

newBuildProblemOccured

var newBuildProblemOccured: Boolean?

Only notify on new build problem or new failed test

newBuildProblemOccurred

var newBuildProblemOccurred: Boolean?

Only notify on new build problem or new failed test

notifier

var notifier: String?

Notifier that will send notifications

notifierSettings

var notifierSettings: NotifierSettings?

Notifier that will send notifications

notifyUntilBuildIsComplete

var notifyUntilBuildIsComplete: Boolean?

Keep notifying until build is complete (even without my changes)

Inherited Properties

enabled

var enabled: Boolean

Specifies whether the feature is enabled, true by default

id

var id: String?

Build feature id, if not specified will be generated

type

var type: String

Build feature type

Functions

emailNotifier

fun emailNotifier(init: EmailNotifier.() -> Unit = {}): EmailNotifier

Send notifications via email

slackNotifier

fun slackNotifier(init: SlackNotifier.() -> Unit = {}): SlackNotifier

Send notifications to Slack

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): BuildFeature

Creates an instance of this build feature 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