org.jenkinsci.lib.xtrigger
Class AbstractTriggerByFullContext<C extends XTriggerContext>
java.lang.Object
hudson.triggers.Trigger<hudson.model.BuildableItem>
org.jenkinsci.lib.xtrigger.AbstractTrigger
org.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext<C>
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>, Serializable
public abstract class AbstractTriggerByFullContext<C extends XTriggerContext>
- extends AbstractTrigger
- Author:
- Gregory Boissinot
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class hudson.triggers.Trigger |
hudson.triggers.Trigger.Cron |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Fields inherited from class hudson.triggers.Trigger |
job, spec, tabs, timer |
|
Method Summary |
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 abstract C |
getContext(hudson.model.Node pollingNode,
XTriggerLog log)
|
abstract boolean |
isContextOnStartupFetched()
|
protected void |
start(hudson.model.Node pollingNode,
hudson.model.BuildableItem project,
boolean newInstance,
XTriggerLog log)
Can be overridden if needed |
| Methods inherited from class org.jenkinsci.lib.xtrigger.AbstractTrigger |
getCause, getDescriptor, getLogFile, getName, getScheduledActions, getScheduledXTriggerActions, getTriggerLabel, requiresWorkspaceForPolling, resolveEnvVars, run, start |
| Methods inherited from class hudson.triggers.Trigger |
all, checkTriggers, for_, getProjectAction, getProjectActions, getSpec, init, readResolve, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTriggerByFullContext
public AbstractTriggerByFullContext(String cronTabSpec)
throws antlr.ANTLRException
- Builds a trigger object
Calls an implementation trigger
- Parameters:
cronTabSpec - the scheduler value
- Throws:
antlr.ANTLRException
start
protected void start(hudson.model.Node pollingNode,
hudson.model.BuildableItem project,
boolean newInstance,
XTriggerLog log)
throws XTriggerException
- Can be overridden if needed
- Overrides:
start in class AbstractTrigger
- Throws:
XTriggerException
isContextOnStartupFetched
public abstract boolean isContextOnStartupFetched()
checkIfModified
protected boolean checkIfModified(hudson.model.Node pollingNode,
XTriggerLog log)
throws XTriggerException
- Description copied from class:
AbstractTrigger
- Checks if there are modifications in the environment between last poll
- Specified by:
checkIfModified in class AbstractTrigger
- Returns:
- true if there are modifications
- Throws:
XTriggerException
getContext
protected abstract C getContext(hudson.model.Node pollingNode,
XTriggerLog log)
throws XTriggerException
- Throws:
XTriggerException
checkIfModified
protected abstract boolean checkIfModified(C oldContext,
C newContext,
XTriggerLog log)
throws XTriggerException
- Checks if there are modifications in the environment between last poll
- Returns:
- true if there are modifications
- Throws:
XTriggerException
Copyright © 2004-2012. All Rights Reserved.