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 org.jenkinsci.lib.xtrigger.AbstractTrigger
org.jenkinsci.lib.xtrigger.AbstractTrigger.Runner
 
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 hudson.triggers.Trigger
job, spec, tabs, timer
 
Constructor Summary
IvyTrigger(String cronTabSpec, String ivyPath, String ivySettingsPath)
           
 
Method Summary
protected  boolean checkIfModified(org.jenkinsci.lib.xtrigger.XTriggerLog log)
           
 String getCause()
           
 IvyTrigger.IvyScriptTriggerDescriptor getDescriptor()
           
 String getIvyPath()
           
 String getIvySettingsPath()
           
protected  File getLogFile()
          Gets the triggering log file
 Collection<? extends hudson.model.Action> getProjectActions()
           
 void run()
           
 void start(hudson.model.BuildableItem project, boolean newInstance)
           
 
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)
           throws antlr.ANTLRException
Throws:
antlr.ANTLRException
Method Detail

start

public void start(hudson.model.BuildableItem project,
                  boolean newInstance)
Overrides:
start in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getIvyPath

public String getIvyPath()

getIvySettingsPath

public String getIvySettingsPath()

getProjectActions

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

checkIfModified

protected boolean checkIfModified(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

getLogFile

protected File getLogFile()
Gets the triggering log file

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

run

public void run()
Overrides:
run in class hudson.triggers.Trigger<hudson.model.BuildableItem>

getCause

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

getDescriptor

public IvyTrigger.IvyScriptTriggerDescriptor 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.