[JIRA] (JENKINS-58046) Multibranch project: reindexing not triggered by Bitbucket webhook

3 views
Skip to first unread message

gpxricky@gmx.de (JIRA)

unread,
Jun 17, 2019, 8:18:02 AM6/17/19
to jenkinsc...@googlegroups.com
GPX Ricky created an issue
 
Jenkins / Bug JENKINS-58046
Multibranch project: reindexing not triggered by Bitbucket webhook
Issue Type: Bug Bug
Assignee: Unassigned
Components: bitbucket-branch-source-plugin
Created: 2019-06-17 12:17
Environment: Bitbucket Branch Source Plugin v. 2.4.4
Jenkins v. 2.164.2
Atlassian Bitbucket v. 5.14.4
Priority: Minor Minor
Reporter: GPX Ricky

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

gpxricky@gmx.de (JIRA)

unread,
Jun 17, 2019, 9:30:03 AM6/17/19
to jenkinsc...@googlegroups.com
GPX Ricky updated an issue
Change By: GPX Ricky
I have created a multibranch pipeline project and configured a webhook (for pushed changes) in my Bitbucket Native Server as follows:
{code:java}

https://<JENKINS_URL>/bitbucket-scmsource-hook/notify?server_url=<BITBUCKET_SERVER_URL>
{code}

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:
{code:java}

"changes":[
   {
    "ref":{
      "id":"refs/heads/my_test",
      "displayId":"my_test",
      "type":"BRANCH"
    },
    "refId":"refs/heads/my_test",
    "fromHash":"8e1e85228a6a76d6f127772037b921ce97b86434",
    "toHash":"b3696c9321f5a2e478aa9a60e61a7baa43ac9964",
    "type":"ADD"
  }
]
{code}
If I manually send the POST request and
remove this change leave {{changes}} empty, then the reindexing is triggered properly . :

{code}
"changes":[]
{code}

Am I doing something wrong with the configuration of the webhook or is this a bug?

Many thanks for help and clarification.
Reply all
Reply to author
Forward
0 new messages