Package org.jenkinsci.plugins.ivytrigger
Class IvyTrigger
java.lang.Object
hudson.triggers.Trigger<BuildableItem>
org.jenkinsci.plugins.xtriggerapi.AbstractTrigger
org.jenkinsci.plugins.xtriggerapi.AbstractTriggerByFullContext<IvyTriggerContext>
org.jenkinsci.plugins.ivytrigger.IvyTrigger
- All Implemented Interfaces:
ExtensionPoint,Describable<Trigger<?>>,Serializable
public class IvyTrigger
extends org.jenkinsci.plugins.xtriggerapi.AbstractTriggerByFullContext<IvyTriggerContext>
implements Serializable
- Author:
- Gregory Boissinot
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classstatic classNested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.CronNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.xtriggerapi.AbstractTrigger
LOGGER, offlineSlaveOnStartup -
Constructor Summary
ConstructorsConstructorDescriptionIvyTrigger(String cronTabSpec, String ivyPath, String ivySettingsPath, String propertiesFilePath, String propertiesContent, LabelRestrictionClass labelRestriction, boolean enableConcurrentBuild, boolean debug, boolean downloadArtifacts) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckIfModified(IvyTriggerContext previousIvyTriggerContext, IvyTriggerContext newIvyTriggerContext, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) getCause()protected IvyTriggerContextgetContext(Node pollingNode, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) protected FileGets the triggering log fileprotected StringgetName()Collection<? extends Action>protected Action[]getScheduledActions(Node pollingNode, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) booleanbooleanisDebug()booleanbooleanbooleanprotected booleanMethods inherited from class org.jenkinsci.plugins.xtriggerapi.AbstractTriggerByFullContext
checkIfModified, checkIfModified, getContext, resetOldContext, setNewContext, startMethods inherited from class org.jenkinsci.plugins.xtriggerapi.AbstractTrigger
getBuildCause, getDescriptor, getScheduledXTriggerActions, getTriggerLabel, requirePollingNode, resolveEnvVars, run, startMethods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getSpec, readResolve, stop, toString
-
Constructor Details
-
IvyTrigger
@DataBoundConstructor public IvyTrigger(String cronTabSpec, String ivyPath, String ivySettingsPath, String propertiesFilePath, String propertiesContent, LabelRestrictionClass labelRestriction, boolean enableConcurrentBuild, boolean debug, boolean downloadArtifacts) throws ANTLRException - Throws:
ANTLRException
-
-
Method Details
-
getIvyPath
-
getIvySettingsPath
-
getPropertiesFilePath
-
getPropertiesContent
-
isDebug
public boolean isDebug() -
isDownloadArtifacts
public boolean isDownloadArtifacts() -
isLabelRestriction
public boolean isLabelRestriction() -
isEnableConcurrentBuild
public boolean isEnableConcurrentBuild() -
getProjectActions
- Overrides:
getProjectActionsin classTrigger<BuildableItem>
-
isContextOnStartupFetched
public boolean isContextOnStartupFetched()- Specified by:
isContextOnStartupFetchedin classorg.jenkinsci.plugins.xtriggerapi.AbstractTriggerByFullContext<IvyTriggerContext>
-
getContext
protected IvyTriggerContext getContext(Node pollingNode, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException - Overrides:
getContextin classorg.jenkinsci.plugins.xtriggerapi.AbstractTriggerByFullContext<IvyTriggerContext>- Throws:
org.jenkinsci.plugins.xtriggerapi.XTriggerException
-
getName
- Specified by:
getNamein classorg.jenkinsci.plugins.xtriggerapi.AbstractTrigger
-
getScheduledActions
protected Action[] getScheduledActions(Node pollingNode, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) - Specified by:
getScheduledActionsin classorg.jenkinsci.plugins.xtriggerapi.AbstractTrigger
-
checkIfModified
protected boolean checkIfModified(IvyTriggerContext previousIvyTriggerContext, IvyTriggerContext newIvyTriggerContext, org.jenkinsci.plugins.xtriggerapi.XTriggerLog log) throws org.jenkinsci.plugins.xtriggerapi.XTriggerException - Specified by:
checkIfModifiedin classorg.jenkinsci.plugins.xtriggerapi.AbstractTriggerByFullContext<IvyTriggerContext>- Throws:
org.jenkinsci.plugins.xtriggerapi.XTriggerException
-
getLogFile
Gets the triggering log file- Specified by:
getLogFilein classorg.jenkinsci.plugins.xtriggerapi.AbstractTrigger- Returns:
- the trigger log
-
requiresWorkspaceForPolling
protected boolean requiresWorkspaceForPolling()- Specified by:
requiresWorkspaceForPollingin classorg.jenkinsci.plugins.xtriggerapi.AbstractTrigger
-
getCause
- Specified by:
getCausein classorg.jenkinsci.plugins.xtriggerapi.AbstractTrigger
-