public abstract class FSTriggerContentFileType extends Object implements ExtensionPoint, Describable<FSTriggerContentFileType>, Serializable
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
protected String |
jobName
The current job name
Used for log
|
Constructor and Description |
---|
FSTriggerContentFileType() |
Modifier and Type | Method and Description |
---|---|
Descriptor<FSTriggerContentFileType> |
getDescriptor() |
abstract Object |
getMemoryInfo()
Used by caller trigger for transferring objects between objects
between master and slave
|
protected abstract void |
initForContent(File file)
Cycle of the trigger
These methods have to be overridden in each trigger implementation
|
void |
initMemoryFields(String jobName,
File file)
Called by the caller trigger for refreshing memory information
|
boolean |
isTriggeringBuild(File file,
org.jenkinsci.plugins.xtriggerapi.XTriggerLog log)
Called by the caller trigger for checking if there is a change
|
protected abstract boolean |
isTriggeringBuildForContent(File file,
org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) |
abstract void |
setMemoryInfo(Object memoryInfo) |
protected transient String jobName
public void initMemoryFields(String jobName, File file) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException
jobName
- the current job namefile
- the current file to inspectorg.jenkinsci.plugins.xtriggerapi.XTriggerException
public boolean isTriggeringBuild(File file, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException
file
- the current file to checklog
- the log objectorg.jenkinsci.plugins.xtriggerapi.XTriggerException
public Descriptor<FSTriggerContentFileType> getDescriptor()
getDescriptor
in interface Describable<FSTriggerContentFileType>
protected abstract void initForContent(File file) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException
org.jenkinsci.plugins.xtriggerapi.XTriggerException
protected abstract boolean isTriggeringBuildForContent(File file, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException
org.jenkinsci.plugins.xtriggerapi.XTriggerException
public abstract Object getMemoryInfo()
public abstract void setMemoryInfo(Object memoryInfo)
Copyright © 2016–2022. All rights reserved.