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

Bitbucket plugin unable to parse push/test connection bitbucket webhook json payload

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • bitbucket-plugin
    • None
    • Jenkins 2.238
      Bitbucket plugin 1.1.11 & 1.1.20
    • 1.1.25

    Description

      Recently, we upgraded Bitbucket server 5.13 to 7.4.1. All automated Bitbucket webhooks jobs stopped triggering. Surprisingly, we are getting below exception in Jenkins logs.

      net.sf.json.JSONException: JSONObject["user"] not found.

              at net.sf.json.JSONObject.getString(JSONObject.java:2040)

              at com.cloudbees.jenkins.plugins.BitbucketPayloadProcessor.processPostServicePayload(BitbucketPayloadProcessor.java:178)

              at com.cloudbees.jenkins.plugins.BitbucketPayloadProcessor.processPayload(BitbucketPayloadProcessor.java:42)

              at com.cloudbees.jenkins.plugins.BitbucketHookReceiver.doIndex(BitbucketHookReceiver.java:54)

              at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)

      So we upgraded Bitbucket plugin with 1.1.20 but still getting same issue in Jenkins.

      Attachments

        Activity

          tzach_solomon Tzach Solomon added a comment -

          ckmca feel free to re-open if does not work but please first try me at the comments section

          tzach_solomon Tzach Solomon added a comment - ckmca feel free to re-open if does not work but please first try me at the comments section
          ckmca Chandan Kumar added a comment -

          Thank you Tzach. It's working fine for me. Appreciate for your help.

          ckmca Chandan Kumar added a comment - Thank you Tzach. It's working fine for me. Appreciate for your help.
          tzach_solomon Tzach Solomon added a comment -

          Sure thing ckmca

          tzach_solomon Tzach Solomon added a comment - Sure thing ckmca
          ckmca Chandan Kumar added a comment -

          Hi Tzach,

          In my dev jenkins environment 1.1.25 version available but other environments of jenkins, it's still showing Bitbucket 1.1.24 version. Can you please assist what went wrong.

          ckmca Chandan Kumar added a comment - Hi Tzach, In my dev jenkins environment 1.1.25 version available but other environments of jenkins, it's still showing Bitbucket 1.1.24 version. Can you please assist what went wrong.
          tzach_solomon Tzach Solomon added a comment -

          ckmca that is out of my scope but I'm guessing some caching or something like that.
          have you tried the "Check Now" button at the bottom of the page?

          tzach_solomon Tzach Solomon added a comment - ckmca that is out of my scope but I'm guessing some caching or something like that. have you tried the "Check Now" button at the bottom of the page?

          People

            tzach_solomon Tzach Solomon
            ckmca Chandan Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: