public abstract class AbstractTrigger extends Trigger<BuildableItem> implements Serializable
Trigger.CronExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
protected boolean |
offlineSlaveOnStartup |
| Modifier | Constructor and Description |
|---|---|
|
AbstractTrigger(String cronTabSpec) |
protected |
AbstractTrigger(String cronTabSpec,
boolean unblockConcurrentBuild) |
protected |
AbstractTrigger(String cronTabSpec,
String triggerLabel) |
protected |
AbstractTrigger(String cronTabSpec,
String triggerLabel,
boolean unblockConcurrentBuild) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
checkIfModified(Node pollingNode,
XTriggerLog log)
Checks if there are modifications in the environment between last poll
|
protected boolean |
checkIfModified(XTriggerLog log) |
protected XTriggerCause |
getBuildCause()
Get the build cause instance to set
This method may be overridden by subclasses
in order to add additional information
to the cause
|
protected abstract String |
getCause()
Gets the trigger cause
|
XTriggerDescriptor |
getDescriptor() |
protected abstract File |
getLogFile()
Gets the triggering log file
|
protected abstract String |
getName() |
protected abstract Action[] |
getScheduledActions(Node pollingNode,
XTriggerLog log) |
protected Action[] |
getScheduledXTriggerActions(Node pollingNode,
XTriggerLog log) |
String |
getTriggerLabel() |
protected boolean |
requirePollingNode() |
protected abstract boolean |
requiresWorkspaceForPolling()
Checks if a consistency workspace is required for the polling
|
protected String |
resolveEnvVars(String value,
AbstractProject<?,?> project,
Node node)
Deprecated.
|
void |
run() |
void |
start(BuildableItem project,
boolean newInstance) |
protected void |
start(Node pollingNode,
BuildableItem project,
boolean newInstance,
XTriggerLog log)
Can be overridden if needed
|
all, checkTriggers, for_, getProjectAction, getProjectActions, getSpec, readResolve, stopprotected static final Logger LOGGER
protected transient boolean offlineSlaveOnStartup
public AbstractTrigger(String cronTabSpec) throws antlr.ANTLRException
antlr.ANTLRExceptionprotected AbstractTrigger(String cronTabSpec, boolean unblockConcurrentBuild) throws antlr.ANTLRException
antlr.ANTLRExceptionprotected AbstractTrigger(String cronTabSpec, String triggerLabel) throws antlr.ANTLRException
antlr.ANTLRExceptionpublic String getTriggerLabel()
protected abstract File getLogFile()
protected abstract boolean requiresWorkspaceForPolling()
public void start(BuildableItem project, boolean newInstance)
start in class Trigger<BuildableItem>protected void start(Node pollingNode, BuildableItem project, boolean newInstance, XTriggerLog log) throws XTriggerException
XTriggerException@Deprecated protected String resolveEnvVars(String value, AbstractProject<?,?> project, Node node) throws XTriggerException
XTriggerExceptionpublic void run()
run in class Trigger<BuildableItem>protected abstract String getName()
public XTriggerDescriptor getDescriptor()
getDescriptor in interface Describable<Trigger<?>>getDescriptor in class Trigger<BuildableItem>protected Action[] getScheduledXTriggerActions(Node pollingNode, XTriggerLog log) throws XTriggerException
XTriggerExceptionprotected abstract Action[] getScheduledActions(Node pollingNode, XTriggerLog log)
protected abstract boolean checkIfModified(Node pollingNode, XTriggerLog log) throws XTriggerException
XTriggerExceptionprotected boolean requirePollingNode()
protected boolean checkIfModified(XTriggerLog log) throws XTriggerException
XTriggerExceptionprotected abstract String getCause()
protected XTriggerCause getBuildCause()
Copyright © 2016–2022. All rights reserved.