open class Trigger : Parametrized, Validatable
TeamCity build trigger
Trigger(init: Trigger.() -> Unit)
Creates a trigger and initializes it with the specified init block Trigger()
TeamCity build trigger |
var enabled: Boolean
Specifies whether the trigger is enabled |
|
var id: String?
Trigger id, if not set will be generated |
|
var type: String
Trigger type |
val params: List<Parameter> |
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. |
|
open fun toString(): String |
|
open fun validate(consumer: ErrorConsumer): Unit
Validates this object and reports found errors to the provided consumer |
fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): SingleDelegateProvider<Boolean> |
|
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): CompoundDelegateProvider<T> |
|
fun <T : Parametrized> copyParamsTo(target: T): T
Copies parameters of this object to the specified target |
|
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): SingleDelegateProvider<E> |
|
fun findRawParam(paramName: String): Parameter? |
|
fun hasParam(paramName: String): Boolean |
|
fun intParameter(customName: String? = null): SingleDelegateProvider<Int> |
|
fun param(name: String, value: String): Unit
Adds parameter with specified name and value |
|
fun removeRawParam(paramName: String): Unit |
|
fun stringParameter(customName: String? = null): SingleDelegateProvider<String> |
open class FinishBuildTrigger : Trigger
Base class for Finish Build Triggers. Finish build trigger runs build when some other build finishes. |
|
open class MavenArtifactDependencyTrigger : Trigger
A trigger running builds when there is a modification of the maven dependency content. |
|
open class MavenSnapshotDependencyTrigger : Trigger
A trigger running builds when there is a modification of the snapshot dependency content in the remote repository. |
|
open class RetryBuildTrigger : Trigger
Triggers the build if the previous build failed after a specified time delay |
|
open class ScheduleTrigger : Trigger
Base class for Schedule Build Triggers. Schedule trigger runs builds by specified schedule. |
|
open class VcsTrigger : Trigger
Base class for VCS triggers. VCS trigger automatically starts a new build each time TeamCity detects new changes. |