public interface

PostRepositoryHook

com.atlassian.bitbucket.hook.repository.PostRepositoryHook<T extends com.atlassian.bitbucket.hook.repository.RepositoryHookRequest>

Class Overview

Hook that is called after changes to 1 or more refs have been made.

Hooks are called asynchronously by default, but implementors can annotate their implementation class with SynchronousPreferred to signal that the hook should be called synchronously. This gives the hook access to the SCM client's output and error streams if the hook is triggered by a StandardRepositoryHookTrigger#REPO_PUSH push to the repository.

If a hook is marked as SynchronousPreferred, the implementor should ensure that the hook does not take a long time to execute, since the repository push will not finish until all hooks have completed.

Summary

Public Methods
void postUpdate(PostRepositoryHookContext context, T request)
Callback method that is called after a request to update one or more refs is completed.

Public Methods

public void postUpdate (PostRepositoryHookContext context, T request)

Callback method that is called after a request to update one or more refs is completed.

Parameters
context provides hook settings and a way to obtain the commits added/removed
request provides details about the refs that have been updated