'Jenkins GitBlit integration - from ticket branch to sprint branch merge using git hooks

I'm trying to find a way to trigger git hook, when I merge a ticket branch to sprint branch.

I have tried default gitblit post-receive option for jenkins, but it seems works only when any git push from local repository to remote repository and my requirement is to execute post-receive only on when ticket branch merges to sprint branch.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source