public abstract class AbstractTriggerByFullContext<C extends XTriggerContext> extends AbstractTrigger
LOGGER, offlineSlaveOnStartup| Modifier | Constructor and Description |
|---|---|
|
AbstractTriggerByFullContext(String cronTabSpec)
Builds a trigger object
Calls an implementation trigger
|
protected |
AbstractTriggerByFullContext(String cronTabSpec,
boolean unblockConcurrentBuild) |
protected |
AbstractTriggerByFullContext(String cronTabSpec,
String triggerLabel) |
protected |
AbstractTriggerByFullContext(String cronTabSpec,
String triggerLabel,
boolean unblockConcurrentBuild) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
checkIfModified(C oldContext,
C newContext,
XTriggerLog log)
Checks if there are modifications in the environment between last poll
|
protected boolean |
checkIfModified(hudson.model.Node pollingNode,
XTriggerLog log)
Checks if there are modifications in the environment between last poll
|
protected boolean |
checkIfModified(XTriggerLog log) |
protected C |
getContext(hudson.model.Node pollingNode,
XTriggerLog log)
Captures the context
This method is alternative to getContext(XTriggerLog log)
It must be overridden
from 0.26
|
protected C |
getContext(XTriggerLog log)
Captures the context
This method is alternative to getContext(Node pollingNode, XTriggerLog log)
It must be overridden
from 0.26
|
abstract boolean |
isContextOnStartupFetched() |
protected void |
resetOldContext(C oldContext)
Resets the current context to the old context
|
protected void |
setNewContext(C context) |
protected void |
start(hudson.model.Node pollingNode,
hudson.model.BuildableItem project,
boolean newInstance,
XTriggerLog log)
Can be overridden if needed
|
getCause, getDescriptor, getLogFile, getName, getScheduledActions, getScheduledXTriggerActions, getTriggerLabel, requirePollingNode, requiresWorkspaceForPolling, resolveEnvVars, run, startpublic AbstractTriggerByFullContext(String cronTabSpec) throws antlr.ANTLRException
cronTabSpec - the scheduler valueantlr.ANTLRException - the expression language expressionprotected AbstractTriggerByFullContext(String cronTabSpec, boolean unblockConcurrentBuild) throws antlr.ANTLRException
antlr.ANTLRExceptionprotected AbstractTriggerByFullContext(String cronTabSpec, String triggerLabel) throws antlr.ANTLRException
antlr.ANTLRExceptionprotected void start(hudson.model.Node pollingNode,
hudson.model.BuildableItem project,
boolean newInstance,
XTriggerLog log)
throws XTriggerException
start in class AbstractTriggerXTriggerExceptionpublic abstract boolean isContextOnStartupFetched()
protected boolean checkIfModified(hudson.model.Node pollingNode,
XTriggerLog log)
throws XTriggerException
AbstractTriggercheckIfModified in class AbstractTriggerXTriggerExceptionprotected boolean checkIfModified(XTriggerLog log) throws XTriggerException
checkIfModified in class AbstractTriggerXTriggerExceptionprotected void setNewContext(C context)
protected void resetOldContext(C oldContext)
oldContext - the previous contextprotected C getContext(hudson.model.Node pollingNode, XTriggerLog log) throws XTriggerException
XTriggerExceptionprotected C getContext(XTriggerLog log) throws XTriggerException
XTriggerExceptionprotected abstract boolean checkIfModified(C oldContext, C newContext, XTriggerLog log) throws XTriggerException
XTriggerExceptionCopyright © 2004-2015. All Rights Reserved.