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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinalized(PushNotification pushNotification, Run<?, ?> run) Gets an existingTriggerStore.TriggerEntry, or null if no such thing exists.static TriggerStoreGets the effective singleton instance.voidremoved(PushNotification payload, Run<?, ?> run) When a build has been removed from jenkins it should also be removed from this store.voidsave(TriggerStore.TriggerEntry entry) voidstarted(PushNotification pushNotification, Run<?, ?> run) voidtriggered(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:
IOExceptionInterruptedException
-
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:
getDescriptorin interfaceDescribable<TriggerStore>
-