I am using script runner Posthook, which should trigger CI, upon pull request merge to certain branches.
I have to identify the branch name in the script runner groovy and pass it as a parameter to CI.