Hi. I've made a task starting by bitbucket hook. The task is maintain version number increment (it changes version file and commit/push it). Sometimes jenkins doesn't run script after merging, but sometimes it works.
I made some investigation and it looks like bitbucket hook send incorrect branch name inside payload:
So I want to merge future-XXX branch to default.
If I set "Close branch" option before merge I got .push.changes[].new.name='future-XXX'
If I don't set "Close branch" option before merge I got .push.changes[].new.name='default'
Is it normal ?