public abstract class AbstractTrigger extends hudson.triggers.Trigger<hudson.model.BuildableItem> implements Serializable
| 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(hudson.model.Node pollingNode,
XTriggerLog log)
Checks if there are modifications in the environment between last poll
|
protected boolean |
checkIfModified(XTriggerLog log) |
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 hudson.model.Action[] |
getScheduledActions(hudson.model.Node pollingNode,
XTriggerLog log) |
protected hudson.model.Action[] |
getScheduledXTriggerActions(hudson.model.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,
hudson.model.AbstractProject project,
hudson.model.Node node) |
void |
run() |
void |
start(hudson.model.BuildableItem project,
boolean newInstance) |
protected void |
start(hudson.model.Node pollingNode,
hudson.model.BuildableItem project,
boolean newInstance,
XTriggerLog log)
Can be overridden if needed
|
protected static 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(hudson.model.BuildableItem project,
boolean newInstance)
start in class hudson.triggers.Trigger<hudson.model.BuildableItem>protected void start(hudson.model.Node pollingNode,
hudson.model.BuildableItem project,
boolean newInstance,
XTriggerLog log)
throws XTriggerException
XTriggerExceptionprotected String resolveEnvVars(String value, hudson.model.AbstractProject project, hudson.model.Node node) throws XTriggerException
XTriggerExceptionpublic void run()
run in class hudson.triggers.Trigger<hudson.model.BuildableItem>protected abstract String getName()
public XTriggerDescriptor getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.triggers.Trigger<?>>getDescriptor in class hudson.triggers.Trigger<hudson.model.BuildableItem>protected hudson.model.Action[] getScheduledXTriggerActions(hudson.model.Node pollingNode,
XTriggerLog log)
throws XTriggerException
XTriggerExceptionprotected abstract hudson.model.Action[] getScheduledActions(hudson.model.Node pollingNode,
XTriggerLog log)
protected abstract boolean checkIfModified(hudson.model.Node pollingNode,
XTriggerLog log)
throws XTriggerException
XTriggerExceptionprotected boolean requirePollingNode()
protected boolean checkIfModified(XTriggerLog log) throws XTriggerException
XTriggerExceptionprotected abstract String getCause()
Copyright © 2004-2015. All Rights Reserved.