Jenkins将302归还给bitbucket webhook

问题描述 投票:5回答:1

我正在尝试使用我的应用程序创建CI,因此每次主分支接收提交时我都想运行一个作业。但是在将bitbucket中的webhook配置为http://my-host:8080/bitbucket-hook/后,它返回状态302。

enter image description here

jenkins bitbucket webhooks
1个回答
9
投票

302是一个重定向代码 - Jenkins将你从http://server:8080/bitbucket-hook(没有斜杠)发送给http://server:8080/bitbucket-hook/(带斜杠)。

如果您将尾部斜杠添加到Bitbucket中的webhook URL,那么您是否获得了不同的状态代码?

© www.soinside.com 2019 - 2024. All rights reserved.