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

How to read HTTP headers with Jenkins, when using generic webhook trigger

XMLWordPrintable

       
      in bitbucket I managed to trigger jenkins by using a webhook. I added the jenkins url and I can read the body of the HTTP request. For this I used a Generic Webhook.

      Now I want to read the header as well. but somehow I dont know how to do this. My aim is it to read the X-Hub-Signature and then compare with the Bitbucket Signature. The header of Bitbucket is described here https://confluence.atlassian.com/bitbucketserver076/event-payload-1026535078.html

      I can see from Bitbucket that it is sending the X-Hub-Signature but cant figure out how to recieve it on jenkins site. If somehow has an advice, then I would be grateful.

            tomasbjerre Tomas Bjerre
            john_bon John Bon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: