Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins is returning 302 to bitbucker webhook

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.

enter image description here

like image 716
Yago Azedias Avatar asked Feb 26 '18 16:02

Yago Azedias


People also ask

How does Jenkins integrate with Git Webhooks?

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/.


1 Answers

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?

like image 180
Jim Redmond Avatar answered Oct 04 '22 00:10

Jim Redmond