Yago Azedias
Yago Azedias

Reputation: 4868

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

Upvotes: 6

Views: 3739

Answers (1)

Jim Redmond
Jim Redmond

Reputation: 5631

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?

Upvotes: 20

Related Questions