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:
  • Field Details

    • jobName

      protected transient String 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 name
      file - 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 check
      log - the log object
      Returns:
      true if we need to schedule a job, false otherwise
      Throws:
      org.jenkinsci.plugins.xtriggerapi.XTriggerException
    • getDescriptor

      public Descriptor<FSTriggerContentFileType> getDescriptor()
      Specified by:
      getDescriptor in interface Describable<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

      public abstract Object getMemoryInfo()
      Used by caller trigger for transferring objects between objects between master and slave
    • setMemoryInfo

      public abstract void setMemoryInfo(Object memoryInfo)