jetbrains.buildServer.buildTriggers
Class PolledBuildTrigger
java.lang.Object
jetbrains.buildServer.buildTriggers.PolledBuildTrigger
- All Implemented Interfaces:
- BuildTriggeringPolicy
public abstract class PolledBuildTrigger
- extends java.lang.Object
- implements BuildTriggeringPolicy
Trigger using this policy will be periodically polled by TeamCity.
Note that because all of the triggers are processed sequentally, each trigger should
work as fast as possible.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_POLL_TRIGGER_INTERVAL
public static final int DEFAULT_POLL_TRIGGER_INTERVAL
PolledBuildTrigger
public PolledBuildTrigger()
getPollInterval
public int getPollInterval(@NotNull
PolledTriggerContext context)
- Returns trigger poll interval in seconds
- Parameters:
context - - the trigger invocation context
- Returns:
- poll interval
triggerBuild
public abstract void triggerBuild(@NotNull
PolledTriggerContext context)
throws BuildTriggerException
- Called periodically by TeamCity.
Trigger should either trigger a build or skip to the next call of the method.
- Parameters:
context - - the trigger invocation context
- Throws:
BuildTriggerException - if exception occurred during the process of build triggering