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

Bitbucket webhooks fails randomly with 'Connection closed'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None

      I can't seem to figure out what exactly is the cause of this, but we're randomly having issues with Webhooks failing from Bitbucket to Jenkins, which is then not running the pipeline 

       

      An example webhook which failed:

       

      Body: 

       

       

      {"eventKey":"repo:refs_changed","date":"2021-08-04T13:47:15+0100","actor":{"name":"*****","emailAddress":"******","id":203,"displayName":"******","active":true,"slug":"*****","type":"NORMAL","links":{"self":[{"href":"https://bitbucket.*****.com/users/******"}]}},"repository":{"slug":"***","id":486,"name":"***","scmId":"git","state":"AVAILABLE","statusMessage":"Available","forkable":true,"project":{"key":"WEB","id":6,"name":"Websites","description":"***","public":false,"type":"NORMAL","links":{"self":[{"href":"https://bitbucket.***.com/projects/WEB"}]}},"public":false,"links":{"clone":[{"href":"https://bitbucket.***.com/scm/web/***.git","name":"http"},{"href":"ssh://git@bitbucket.***.com:7999/web/***.git","name":"ssh"}],"self":[{"href":"https://bitbucket.***.com/projects/WEB/repos/***/browse"}]}},"changes":[{"ref":{"id":"refs/heads/master","displayId":"master","type":"BRANCH"},"refId":"refs/heads/master","fromHash":"d1d063c8f6220a824af691c09acfa9086fabdc4c","toHash":"f97837b29d556ef0baf1a3e444788a12fea252d5","type":"UPDATE"}]}

       

      Response: 

      java.lang.RuntimeException: org.apache.http.ConnectionClosedException: Connection closed

       

      Bitbucket version:

       

            Unassigned Unassigned
            fw Ffaen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: