Class BuildResultTrigger
- java.lang.Object
-
- hudson.triggers.Trigger<BuildableItem>
-
- org.jenkinsci.lib.xtrigger.AbstractTrigger
-
- org.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext<BuildResultTriggerContext>
-
- org.jenkinsci.plugins.buildresulttrigger.BuildResultTrigger
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Trigger<?>>
,Serializable
,DependencyDeclarer
public class BuildResultTrigger extends org.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext<BuildResultTriggerContext> implements DependencyDeclarer
- Author:
- Gregory Boissinot
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildResultTrigger.BuildResultTriggerDescriptor
class
BuildResultTrigger.InternalBuildResultTriggerAction
static class
BuildResultTrigger.ItemListenerImpl
-
Nested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.Cron
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BuildResultTrigger(String cronTabSpec, boolean combinedJobs, BuildResultTriggerInfo[] jobsInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildDependencyGraph(AbstractProject ap, DependencyGraph dg)
protected boolean
checkIfModified(BuildResultTriggerContext oldContext, BuildResultTriggerContext newContext, org.jenkinsci.lib.xtrigger.XTriggerLog log)
protected String
getCause()
protected BuildResultTriggerContext
getContext(org.jenkinsci.lib.xtrigger.XTriggerLog log)
BuildResultTriggerInfo[]
getJobsInfo()
File
getLogFile()
protected String
getName()
Collection<? extends Action>
getProjectActions()
protected Action[]
getScheduledActions(Node node, org.jenkinsci.lib.xtrigger.XTriggerLog log)
boolean
isCombinedJobs()
boolean
isContextOnStartupFetched()
boolean
onJobRenamed(String fullOldName, String fullNewName)
protected boolean
requirePollingNode()
protected boolean
requiresWorkspaceForPolling()
-
Methods inherited from class org.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext
checkIfModified, checkIfModified, getContext, resetOldContext, setNewContext, start
-
Methods inherited from class org.jenkinsci.lib.xtrigger.AbstractTrigger
getDescriptor, getScheduledXTriggerActions, getTriggerLabel, resolveEnvVars, run, start
-
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getProjectAction, getSpec, readResolve, stop
-
-
-
-
Constructor Detail
-
BuildResultTrigger
@DataBoundConstructor public BuildResultTrigger(String cronTabSpec, boolean combinedJobs, BuildResultTriggerInfo[] jobsInfo) throws ANTLRException
- Throws:
ANTLRException
-
-
Method Detail
-
isCombinedJobs
public boolean isCombinedJobs()
-
getJobsInfo
public BuildResultTriggerInfo[] getJobsInfo()
-
getLogFile
public File getLogFile()
- Specified by:
getLogFile
in classorg.jenkinsci.lib.xtrigger.AbstractTrigger
-
getProjectActions
public Collection<? extends Action> getProjectActions()
- Overrides:
getProjectActions
in classTrigger<BuildableItem>
-
buildDependencyGraph
public void buildDependencyGraph(AbstractProject ap, DependencyGraph dg)
- Specified by:
buildDependencyGraph
in interfaceDependencyDeclarer
-
requiresWorkspaceForPolling
protected boolean requiresWorkspaceForPolling()
- Specified by:
requiresWorkspaceForPolling
in classorg.jenkinsci.lib.xtrigger.AbstractTrigger
-
getName
protected String getName()
- Specified by:
getName
in classorg.jenkinsci.lib.xtrigger.AbstractTrigger
-
getScheduledActions
protected Action[] getScheduledActions(Node node, org.jenkinsci.lib.xtrigger.XTriggerLog log)
- Specified by:
getScheduledActions
in classorg.jenkinsci.lib.xtrigger.AbstractTrigger
-
getCause
protected String getCause()
- Specified by:
getCause
in classorg.jenkinsci.lib.xtrigger.AbstractTrigger
-
isContextOnStartupFetched
public boolean isContextOnStartupFetched()
- Specified by:
isContextOnStartupFetched
in classorg.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext<BuildResultTriggerContext>
-
requirePollingNode
protected boolean requirePollingNode()
- Overrides:
requirePollingNode
in classorg.jenkinsci.lib.xtrigger.AbstractTrigger
-
getContext
protected BuildResultTriggerContext getContext(org.jenkinsci.lib.xtrigger.XTriggerLog log) throws org.jenkinsci.lib.xtrigger.XTriggerException
- Overrides:
getContext
in classorg.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext<BuildResultTriggerContext>
- Throws:
org.jenkinsci.lib.xtrigger.XTriggerException
-
checkIfModified
protected boolean checkIfModified(BuildResultTriggerContext oldContext, BuildResultTriggerContext newContext, org.jenkinsci.lib.xtrigger.XTriggerLog log) throws org.jenkinsci.lib.xtrigger.XTriggerException
- Specified by:
checkIfModified
in classorg.jenkinsci.lib.xtrigger.AbstractTriggerByFullContext<BuildResultTriggerContext>
- Throws:
org.jenkinsci.lib.xtrigger.XTriggerException
-
-