Class FSTriggerContentFileType
java.lang.Object
org.jenkinsci.plugins.fstrigger.core.FSTriggerContentFileType
- All Implemented Interfaces:
ExtensionPoint,Describable<FSTriggerContentFileType>,Serializable
- Direct Known Subclasses:
PropertiesFileContent,SimpleFileContent,TarFileContent,TextFileContent,XMLFileContent,ZIPFileContent
public abstract class FSTriggerContentFileType
extends Object
implements ExtensionPoint, Describable<FSTriggerContentFileType>, Serializable
- Author:
- Gregory Boissinot
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectUsed by caller trigger for transferring objects between objects between master and slaveprotected abstract voidinitForContent(File file) Cycle of the trigger These methods have to be overridden in each trigger implementationvoidinitMemoryFields(String jobName, File file) Called by the caller trigger for refreshing memory informationbooleanisTriggeringBuild(File file, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) Called by the caller trigger for checking if there is a changeprotected abstract booleanisTriggeringBuildForContent(File file, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) abstract voidsetMemoryInfo(Object memoryInfo)
-
Field Details
-
jobName
The current job name Used for log
-
-
Constructor Details
-
FSTriggerContentFileType
public FSTriggerContentFileType()
-
-
Method Details
-
initMemoryFields
public void initMemoryFields(String jobName, File file) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException Called by the caller trigger for refreshing memory information- Parameters:
jobName- the current job namefile- the current file to inspect- Throws:
org.jenkinsci.plugins.xtriggerapi.XTriggerException
-
isTriggeringBuild
public boolean isTriggeringBuild(File file, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException Called by the caller trigger for checking if there is a change- Parameters:
file- the current file to checklog- the log object- Returns:
- true if we need to schedule a job, false otherwise
- Throws:
org.jenkinsci.plugins.xtriggerapi.XTriggerException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<FSTriggerContentFileType>
-
initForContent
protected abstract void initForContent(File file) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException Cycle of the trigger These methods have to be overridden in each trigger implementation- Throws:
org.jenkinsci.plugins.xtriggerapi.XTriggerException
-
isTriggeringBuildForContent
protected abstract boolean isTriggeringBuildForContent(File file, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException - Throws:
org.jenkinsci.plugins.xtriggerapi.XTriggerException
-
getMemoryInfo
Used by caller trigger for transferring objects between objects between master and slave -
setMemoryInfo
-