Build status notification failing when applinked to Jenkins

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 7.6.3
    • Component/s: Repositories
    • None
    • 2
    • Severity 3 - Minor
    • 7

      Issue Summary

       

      We were experimenting with setting everything up again from scratch. And when we did a test WITHOUT the Bitbucket Server consumer configured it does work ??

      We investigated the communication with wireshark, and managed to trace the cause back to some part of the http headers.

      Doing a manual call of the status rest post, WITHOUT the BBS-Signature and BBS-Signature-Algorithm does work. But the moment these 2 headers are added the error occurs.

      Steps to Reproduce

      1. Set up a Bitbucket Server instance with an applink to a Jenkins instance
      2. Run a build

      Expected Results

      The build status being logged successfully.

      Actual Results

      From Jenkins job we see this (some parts redacted):

      Posting build status of INPROGRESS to ****** for commit id [********] and ref 'refs/heads/production'
      Failed to post build status, additional information: The server failed to service request

      On Bitbucket side we see this (some parts redacted):

      2021-01-22 09:14:53,050 WARN [http-nio-7990-exec-10] ******* @P7WCJOx554x294432x0 1pokq4f 172.23.194.42,172.23.6.75,0:0:0:0:0:0:0:1 "POST /rest/api/1.0/projects/TST/repos/test/commits/3d3aaae526b9ff09f8478d6de13772a1e74624fa/builds HTTP/1.1" c.a.b.i.b.j.JenkinsBuildServerProvider$JenkinsPublicKeyCacheLoader Unable to load Jenkins public key for applicationId: ************
      java.io.IOException: No header found for http://*************

      2021-01-22 09:14:53,052 ERROR [http-nio-7990-exec-10] ******* @P7WCJOx554x294432x0 1pokq4f 172.23.194.42,172.23.6.75,0:0:0:0:0:0:0:1 "POST /rest/api/1.0/projects/TST/repos/test/commits/3d3aaae526b9ff09f8478d6de13772a1e74624fa/builds HTTP/1.1" c.a.s.i.r.e.DefaultUnhandledExceptionMapperHelper Unhandled exception while processing REST request: "POST /rest/api/1.0/projects/TST/repos/test/commits/3d3aaae526b9ff09f8478d6de13772a1e74624fa/builds HTTP/1.1"
      com.atlassian.cache.CacheException: Failed to fetch public key from Jenkins please ensure your application link is configured correctly

       Caused by: java.io.IOException: No header found for http://***********

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Martin Henschke
            Votes:
            5 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: