org.jenkinsci.plugins.pollmailboxtrigger
Class PollMailboxTrigger

java.lang.Object
  extended by hudson.triggers.Trigger<hudson.model.BuildableItem>
      extended by org.jenkinsci.lib.xtrigger.AbstractTrigger
          extended by org.jenkinsci.plugins.scripttrigger.AbstractTrigger
              extended by org.jenkinsci.plugins.pollmailboxtrigger.PollMailboxTrigger
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.triggers.Trigger<?>>, Serializable

public class PollMailboxTrigger
extends org.jenkinsci.plugins.scripttrigger.AbstractTrigger

Author:
Nick Grealy
See Also:
Serialized Form

Nested Class Summary
 class PollMailboxTrigger.InternalScriptTriggerAction
           
static class PollMailboxTrigger.ScriptTriggerDescriptor
           
 
Nested classes/interfaces inherited from class hudson.triggers.Trigger
hudson.triggers.Trigger.Cron
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class org.jenkinsci.plugins.scripttrigger.AbstractTrigger
enableConcurrentBuild, labelRestriction
 
Fields inherited from class org.jenkinsci.lib.xtrigger.AbstractTrigger
LOGGER, offlineSlaveOnStartup
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
PollMailboxTrigger(String cronTabSpec, org.jenkinsci.plugins.scripttrigger.LabelRestrictionClass labelRestriction, boolean enableConcurrentBuild, String script)
           
 
Method Summary
protected static hudson.util.FormValidation checkForEmails(String script, org.jenkinsci.lib.xtrigger.XTriggerLog log, boolean testConnection, PollMailboxTrigger pmt)
           
protected  boolean checkIfModified(hudson.model.Node executingNode, org.jenkinsci.lib.xtrigger.XTriggerLog log)
           
protected  String getDefaultMessageCause()
           
 PollMailboxTrigger.ScriptTriggerDescriptor getDescriptor()
           
protected  File getLogFile()
           
protected  String getName()
           
 Collection<? extends hudson.model.Action> getProjectActions()
           
 String getScript()
           
 
Methods inherited from class org.jenkinsci.plugins.scripttrigger.AbstractTrigger
getCause, getScheduledActions, isEnableConcurrentBuild, isLabelRestriction, requiresWorkspaceForPolling, start
 
Methods inherited from class org.jenkinsci.lib.xtrigger.AbstractTrigger
getScheduledXTriggerActions, getTriggerLabel, resolveEnvVars, run, start
 
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
 

Constructor Detail

PollMailboxTrigger

@DataBoundConstructor
public PollMailboxTrigger(String cronTabSpec,
                                               org.jenkinsci.plugins.scripttrigger.LabelRestrictionClass labelRestriction,
                                               boolean enableConcurrentBuild,
                                               String script)
                   throws antlr.ANTLRException
Throws:
antlr.ANTLRException
Method Detail

checkForEmails

protected static hudson.util.FormValidation checkForEmails(String script,
                                                           org.jenkinsci.lib.xtrigger.XTriggerLog log,
                                                           boolean testConnection,
                                                           PollMailboxTrigger pmt)
                                                    throws org.jenkinsci.plugins.scripttrigger.ScriptTriggerException
Throws:
org.jenkinsci.plugins.scripttrigger.ScriptTriggerException

getScript

public String getScript()

getProjectActions

public Collection<? extends hudson.model.Action> getProjectActions()
Overrides:
getProjectActions in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getName

protected String getName()
Overrides:
getName in class org.jenkinsci.plugins.scripttrigger.AbstractTrigger

getDescriptor

public PollMailboxTrigger.ScriptTriggerDescriptor getDescriptor()
Specified by:
getDescriptor in interface hudson.model.Describable<hudson.triggers.Trigger<?>>
Overrides:
getDescriptor in class org.jenkinsci.lib.xtrigger.AbstractTrigger

getLogFile

protected File getLogFile()
Specified by:
getLogFile in class org.jenkinsci.lib.xtrigger.AbstractTrigger

getDefaultMessageCause

protected String getDefaultMessageCause()
Specified by:
getDefaultMessageCause in class org.jenkinsci.plugins.scripttrigger.AbstractTrigger

checkIfModified

protected boolean checkIfModified(hudson.model.Node executingNode,
                                  org.jenkinsci.lib.xtrigger.XTriggerLog log)
                           throws org.jenkinsci.plugins.scripttrigger.ScriptTriggerException
Specified by:
checkIfModified in class org.jenkinsci.lib.xtrigger.AbstractTrigger
Throws:
org.jenkinsci.plugins.scripttrigger.ScriptTriggerException


Copyright © 2004-2014. All Rights Reserved.