Class TriggerStore
- All Implemented Interfaces:
Describable<TriggerStore>
,Saveable
,Loadable
,OnMaster
@Extension
public final class TriggerStore
extends Descriptor<TriggerStore>
implements Describable<TriggerStore>
Store of all triggered builds.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinalized
(PushNotification pushNotification, Run<?, ?> run) Gets an existingTriggerStore.TriggerEntry
, or null if no such thing exists.static TriggerStore
Gets the effective singleton instance.void
removed
(PushNotification payload, Run<?, ?> run) When a build has been removed from jenkins it should also be removed from this store.void
save
(TriggerStore.TriggerEntry entry) void
started
(PushNotification pushNotification, Run<?, ?> run) void
triggered
(PushNotification pushNotification, Job<?, ?> job) Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
TriggerStore
public TriggerStore()
-
-
Method Details
-
triggered
-
started
-
finalized
@CheckForNull public TriggerStore.TriggerEntry finalized(@NonNull PushNotification pushNotification, Run<?, ?> run) -
removed
When a build has been removed from jenkins it should also be removed from this store.- Parameters:
payload
- the payloadrun
- the build.
-
getEntry
@CheckForNull public TriggerStore.TriggerEntry getEntry(String sha) throws IOException, InterruptedException Gets an existingTriggerStore.TriggerEntry
, or null if no such thing exists.- Parameters:
sha
- thePushNotification.sha()
.- Returns:
- the entry if found.
- Throws:
IOException
- if soInterruptedException
- if so
-
save
- Throws:
IOException
InterruptedException
-
getInstance
Gets the effective singleton instance.- Returns:
- the effective singleton instance.
- Throws:
AssertionError
- if the singleton is missing, i.e. not running on a Jenkins master.
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<TriggerStore>
-