public class


extends BaseScmHookModuleDescriptor<T>
   ↳ com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
     ↳ com.atlassian.stash.scm.BaseWeightedModuleDescriptor<T>
       ↳ com.atlassian.stash.hook.BaseScmHookModuleDescriptor<T>
         ↳ com.atlassian.stash.hook.PostReceiveHookModuleDescriptor

Class Overview

Provides a PostReceiveHook implementation.

Usage example:

     <post-receive-hook key="myPostReceiveHook"
              name="Show some example"
         <description>A post-receive hook example that thanks the user for pushing</description>

The (optional) weight attribute defines the order in which PostReceiveHook implementations will be executed. Lower weights are executed earlier and the default weight is 1000. The module key (of the form plugin.key:module.key) will be used as a secondary sort factor to ensure a deterministic order for a given set of modules. The weight attribute was added in 3.8 and will be ignored in older versions of Stash.

Adding a weight will not necessarily lead to a stable and predictable execution order, as the overall order depends on the weight attribute values and module keys of other post-receive hooks that may be added or removed over time.


public static final String XML_ELEMENT_NAME
Inherited Fields
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From interface com.atlassian.stash.util.Weighted
Public Constructors
PostReceiveHookModuleDescriptor(ModuleFactory moduleFactory)
Inherited Methods
From class com.atlassian.stash.hook.BaseScmHookModuleDescriptor
From class com.atlassian.stash.scm.BaseWeightedModuleDescriptor
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From class java.lang.Object
From interface com.atlassian.plugin.ModuleDescriptor
From interface com.atlassian.plugin.Resourced
From interface com.atlassian.plugin.StateAware
From interface com.atlassian.stash.util.Weighted
From interface java.lang.Comparable


public static final String XML_ELEMENT_NAME

Public Constructors

public PostReceiveHookModuleDescriptor (ModuleFactory moduleFactory)