org.jenkinsci.plugins.fstrigger.triggers
Class FileNameTrigger
java.lang.Object
hudson.triggers.Trigger<hudson.model.BuildableItem>
org.jenkinsci.plugins.fstrigger.triggers.AbstractTrigger
org.jenkinsci.plugins.fstrigger.triggers.FileNameTrigger
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>
public class FileNameTrigger
- extends AbstractTrigger
- Author:
- Gregory Boissinot
| 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 |
| Methods inherited from class hudson.triggers.Trigger |
all, checkTriggers, for_, getProjectAction, getSpec, init, readResolve, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileNameTrigger
public FileNameTrigger(String cronTabSpec)
throws antlr.ANTLRException
- A constructor with only the GUI cronTabSpec parameter
The instance is build by the JSON binding with the newInstance in
FileNameTrigger.FileNameTriggerDescriptor
- Throws:
antlr.ANTLRException
getFolderPath
public String getFolderPath()
- Getters and setters
getFileName
public String getFileName()
isUsingREGEX
public boolean isUsingREGEX()
getStrategy
public String getStrategy()
isInspectingContentFile
public boolean isInspectingContentFile()
getContentFileTypes
public FSTriggerContentFileType[] getContentFileTypes()
isNoCheckedLastModifiedDate
public boolean isNoCheckedLastModifiedDate()
setFolderPath
public void setFolderPath(String folderPath)
setFileName
public void setFileName(String fileName)
setUsingREGEX
public void setUsingREGEX(boolean usingREGEX)
setStrategy
public void setStrategy(String strategy)
setInspectingContentFile
public void setInspectingContentFile(boolean inspectingContentFile)
setContentFileTypes
public void setContentFileTypes(FSTriggerContentFileType[] contentFileTypes)
setNoCheckedLastModifiedDate
public void setNoCheckedLastModifiedDate(boolean noCheckedLastModifiedDate)
start
public void start(hudson.model.BuildableItem project,
boolean newInstance)
- Overrides:
start in class hudson.triggers.Trigger<hudson.model.BuildableItem>
run
public void run()
- Overrides:
run in class hudson.triggers.Trigger<hudson.model.BuildableItem>
getCause
public String getCause()
- Specified by:
getCause in class AbstractTrigger
checkIfModified
public boolean checkIfModified(FSTriggerLog log)
throws FSTriggerException
- Description copied from class:
AbstractTrigger
- Checks if the new folder Content has been modified
The date time and the content file are used.
- Specified by:
checkIfModified in class AbstractTrigger
- Returns:
- true if the new folder content has been modifier
- Throws:
FSTriggerException
getProjectActions
public Collection<? extends hudson.model.Action> getProjectActions()
- Overrides:
getProjectActions in class hudson.triggers.Trigger<hudson.model.BuildableItem>
getDescriptor
public FileNameTrigger.FileNameTriggerDescriptor getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.triggers.Trigger<?>>- Overrides:
getDescriptor in class hudson.triggers.Trigger<hudson.model.BuildableItem>
Copyright © 2004-2011. All Rights Reserved.