Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58046

Multibranch project: reindexing not triggered by Bitbucket webhook

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Bitbucket Branch Source Plugin v. 2.4.4
      Jenkins v. 2.164.2
      Atlassian Bitbucket v. 5.14.4
    • Similar Issues:

      Description

      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 leave changes empty, then the reindexing is triggered properly:

      "changes":[]
      

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

      Many thanks for help and clarification.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gpxricky GPX Ricky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: