public class

PostReceiveHookModuleDescriptor

extends BaseScmHookModuleDescriptor<T>
java.lang.Object
   ↳ 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"
              class="com.mycompany.example.plugin.myhook.MyPostReceiveHook">
         <description>A post-receive hook example that thanks the user for pushing</description>
     </post-receive-hook>
 

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.

Summary

Fields
public static final String XML_ELEMENT_NAME
[Expand]
Inherited Fields
From class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
From interface com.atlassian.stash.util.Weighted
Public Constructors
PostReceiveHookModuleDescriptor(ModuleFactory moduleFactory)
[Expand]
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

Fields

public static final String XML_ELEMENT_NAME

Public Constructors

public PostReceiveHookModuleDescriptor (ModuleFactory moduleFactory)