Github Webhook With Jenkins return 302 NotFound

前端 未结 1 1047
孤街浪徒
孤街浪徒 2020-12-28 15:44

I set up localhost jenkins, using ngrok to expose my jenkins to github. I didn\'t set up any credentials. When I test delivery from webhook, it shows 302 not found. Response

1条回答
  •  囚心锁ツ
    2020-12-28 16:19

    Just got hit by the same issue. It appears that you are using the url: http://056b05cb.ngrok.io/github-webhook

    Simply switch it to http://056b05cb.ngrok.io/github-webhook/ (notice the trailing /)

    If you hit the url without the / on a browser, it will get a 302 and the browser will simply redirect. But the webhook does not follow redirects, so it simply tells you what the response was, which was a 302 redirect.

    0 讨论(0)
提交回复
热议问题