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

Build trigger using Bitbucket webhook not working

XMLWordPrintable

      Dear Jenknis team,
      We fail to setup automatic build triggering in Jenkins using Bitbucket webhooks.
      The Bitbucket Server Integration plugin is installed and configured, following the official integration manual
      The triggering method is configured via Bitbucket webhook trigger. The webhook itself is successfully created in Bitbucket and build status is updated as well (builds can be invoked manually from Bitbucket and complete successfully in Jenkins).
      Triggering builds after commit / push / merge is not working though, even when the webhook is active and the latest responses are: http code 200 (success).
      Any idea how we can make it work? Please refer to the screenshots as well.

      The Jenkins log file reports:

      INFO    c.a.b.j.i.t.BitbucketWebhookConsumer#lambda$hasMatchingRepository$6: Base URL of incoming repository selflink - https://xxxxxxxxxx and bitbucket server configured URL - http://xxxxxxxxxx:7991 seems to be be different

      Thank you!

        1. Bitbucker server integration.jpg
          58 kB
          Andrey Tsolev
        2. Bitbucket builds view.jpg
          47 kB
          Andrey Tsolev
        3. Bitbucket webhook request.jpg
          55 kB
          Andrey Tsolev
        4. Bitbucket webhook response 200.jpg
          39 kB
          Andrey Tsolev
        5. Bitbucket webhook URL and status.jpg
          84 kB
          Andrey Tsolev
        6. Project build triggers.jpg
          26 kB
          Andrey Tsolev
        7. Project SCM.jpg
          74 kB
          Andrey Tsolev

            cdelmonte Christian Del Monte
            tsoleva Andrey Tsolev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: