public interface

PostReceiveHook

com.atlassian.bitbucket.hook.PostReceiveHook

Class Overview

Hook that is called just after a push request is completed.

Summary

Public Methods
void onReceive(Repository repository, Collection<RefChange> refChanges, HookResponse response)
Callback method that is called just after a push request is completed.

Public Methods

public void onReceive (Repository repository, Collection<RefChange> refChanges, HookResponse response)

Callback method that is called just after a push request is completed. This hook executes during the processing of a push and the client will have to wait during the execution of the onReceive method.

Parameters
repository the repository that was pushed to
refChanges the refs that have just been updated
response used to write to the client's stdout and/or stderr