org.jenkinsci.plugins.ivytrigger
Class IvyTrigger

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

public class IvyTrigger
extends org.jenkinsci.lib.xtrigger.AbstractTrigger
implements Serializable

Author:
Gregory Boissinot
See Also:
Serialized Form

Nested Class Summary
static class IvyTrigger.IvyScriptTriggerDescriptor
           
 
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.lib.xtrigger.AbstractTrigger
offlineSlaveOnStartup
 
Fields inherited from class hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
IvyTrigger(String cronTabSpec, String ivyPath, String ivySettingsPath, String propertiesFilePath, String propertiesContent)
           
 
Method Summary
protected  boolean checkIfModified(hudson.model.Node pollingNode, org.jenkinsci.lib.xtrigger.XTriggerLog log)
           
 String getCause()
           
 String getIvyPath()
           
 String getIvySettingsPath()
           
protected  File getLogFile()
          Gets the triggering log file
protected  String getName()
           
 Collection<? extends hudson.model.Action> getProjectActions()
           
 String getPropertiesContent()
           
 String getPropertiesFilePath()
           
protected  hudson.model.Action[] getScheduledActions(hudson.model.Node pollingNode, org.jenkinsci.lib.xtrigger.XTriggerLog log)
           
protected  boolean requiresWorkspaceForPolling()
           
 void start(hudson.model.Node pollingNode, hudson.model.BuildableItem project, boolean newInstance, org.jenkinsci.lib.xtrigger.XTriggerLog log)
           
 
Methods inherited from class org.jenkinsci.lib.xtrigger.AbstractTrigger
getDescriptor, 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

IvyTrigger

@DataBoundConstructor
public IvyTrigger(String cronTabSpec,
                                       String ivyPath,
                                       String ivySettingsPath,
                                       String propertiesFilePath,
                                       String propertiesContent)
           throws antlr.ANTLRException
Throws:
antlr.ANTLRException
Method Detail

getIvyPath

public String getIvyPath()

getIvySettingsPath

public String getIvySettingsPath()

getPropertiesFilePath

public String getPropertiesFilePath()

getPropertiesContent

public String getPropertiesContent()

start

public void start(hudson.model.Node pollingNode,
                  hudson.model.BuildableItem project,
                  boolean newInstance,
                  org.jenkinsci.lib.xtrigger.XTriggerLog log)
Specified by:
start in class org.jenkinsci.lib.xtrigger.AbstractTrigger

getProjectActions

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

checkIfModified

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

getName

protected String getName()
Specified by:
getName in class org.jenkinsci.lib.xtrigger.AbstractTrigger

getScheduledActions

protected hudson.model.Action[] getScheduledActions(hudson.model.Node pollingNode,
                                                    org.jenkinsci.lib.xtrigger.XTriggerLog log)
Specified by:
getScheduledActions in class org.jenkinsci.lib.xtrigger.AbstractTrigger

getLogFile

protected File getLogFile()
Gets the triggering log file

Specified by:
getLogFile in class org.jenkinsci.lib.xtrigger.AbstractTrigger
Returns:
the trigger log

requiresWorkspaceForPolling

protected boolean requiresWorkspaceForPolling()
Specified by:
requiresWorkspaceForPolling in class org.jenkinsci.lib.xtrigger.AbstractTrigger

getCause

public String getCause()
Specified by:
getCause in class org.jenkinsci.lib.xtrigger.AbstractTrigger


Copyright © 2004-2012. All Rights Reserved.