public abstract class PolledBuildTrigger extends java.lang.Object implements BuildTriggeringPolicy
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POLL_TRIGGER_INTERVAL |
| Constructor and Description |
|---|
PolledBuildTrigger() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPollInterval(PolledTriggerContext context)
Returns trigger poll interval in seconds
|
java.util.Map<java.lang.String,java.lang.String> |
getTriggerStateProperties(PolledTriggerContext context) |
void |
triggerActivated(PolledTriggerContext context)
Called when the build trigger is added to a build configuration, enabled, changed or when build configuration is unpaused.
|
abstract void |
triggerBuild(PolledTriggerContext context)
Called periodically by TeamCity.
|
void |
triggerDeactivated(PolledTriggerContext context)
Called when the build trigger is removed from a build configuration, disabled or when the build configuration is paused or deleted.
|
public static final int DEFAULT_POLL_TRIGGER_INTERVAL
public int getPollInterval(@NotNull
PolledTriggerContext context)
context - - the trigger invocation contextpublic abstract void triggerBuild(@NotNull
PolledTriggerContext context)
throws BuildTriggerException
context - - the trigger invocation contextBuildTriggerException - if exception occurred during the process of build triggeringpublic void triggerActivated(@NotNull
PolledTriggerContext context)
throws BuildTriggerException
context - current contextBuildTriggerExceptionpublic void triggerDeactivated(@NotNull
PolledTriggerContext context)
throws BuildTriggerException
context - current contextBuildTriggerException@Nullable
public java.util.Map<java.lang.String,java.lang.String> getTriggerStateProperties(@NotNull
PolledTriggerContext context)
context - state properties can be based on trigger own properties, or on some build type settings; context object allows accessing both of them