jetbrains.buildServer.configs.kotlin.v2018_1.triggers / VcsTrigger

VcsTrigger

open class VcsTrigger : Trigger

Base class for VCS triggers. VCS trigger automatically starts a new build each time TeamCity detects new changes.

See Also

vcs

Types

QuietPeriodMode

enum class QuietPeriodMode

Quiet Period Settings

Constructors

<init>

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

Base class for VCS triggers. VCS trigger automatically starts a new build each time TeamCity detects new changes.

Properties

branchFilter

var branchFilter: String?

Branch filter specifies changes in which branches the trigger should watch

enableQueueOptimization

var enableQueueOptimization: Boolean?

Whether the trigger should allow builds optimization in the build queue. By default optimization is enabled. It is ignored when per-check-in triggering is enabled.

groupCheckinsByCommitter

var groupCheckinsByCommitter: Boolean?

Whether the trigger should include check-ins from the same user into a build. Works only when per-check-in triggering is enabled.

perCheckinTriggering

var perCheckinTriggering: Boolean?

Whether the trigger should run build on each check-in in VCS.

quietPeriod

var quietPeriod: Int?

Custom quiet period for the trigger, to enable it set the quietPeriodMode to QuietPeriodMode.USE_CUSTOM

quietPeriodMode

var quietPeriodMode: QuietPeriodMode?

Quiet Period Settings

triggerRules

var triggerRules: String?

Trigger rules allow to limit the changes that trigger builds

watchChangesInDependencies

var watchChangesInDependencies: Boolean?

When enabled, the trigger runs builds on changes in snapshot dependencies

Inherited Properties

enabled

var enabled: Boolean

Specifies whether the trigger is enabled

id

var id: String?

Trigger id, if not set will be generated

type

var type: String

Trigger type

Functions

validate

open fun validate(consumer: ErrorConsumer): Unit

Validates this object and reports found errors to the provided consumer

Inherited Functions

create

open fun create(): Trigger

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