I am trying to create a CI with my application, so every time that the master branch receive a commit I want to run a job. But after configured the webhook in bitbucket to http://my-host:8080/bitbucket-hook/
it's returning status 302.
Step 1: go to your GitHub repository and click on 'Settings'. Step 2: Click on Webhooks and then click on 'Add webhook'. Step 3: In the 'Payload URL' field, paste your Jenkins environment URL. At the end of this URL add /github-webhook/.
302 is a redirect code - Jenkins is sending you from http://server:8080/bitbucket-hook
(without trailing slash) to http://server:8080/bitbucket-hook/
(with trailing slash).
If you add the trailing slash to the webhook URL in Bitbucket, then do you get a different status code?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With