| I have created a multibranch pipeline project and configured a webhook (for pushed changes) in my Bitbucket Native Server as follows:
https://<JENKINS_URL>/bitbucket-scmsource-hook/notify?server_url=<BITBUCKET_SERVER_URL>
However, the webhook does not trigger the reindexing of my multibranch project. I have checked the POST message and I have seen that the payload always provides a change like this one:
"changes":[
{
"ref":{
"id":"refs/heads/my_test",
"displayId":"my_test",
"type":"BRANCH"
},
"refId":"refs/heads/my_test",
"fromHash":"8e1e85228a6a76d6f127772037b921ce97b86434",
"toHash":"b3696c9321f5a2e478aa9a60e61a7baa43ac9964",
"type":"ADD"
}
]
If I manually send the POST request and remove this change then the reindexing is triggered properly. Am I doing something wrong with the configuration of the webhook or is this a bug? Many thanks for help and clarification. |