当启用 Windows 身份验证时,BitBucket 触发 jenkins 通过帖子构建不起作用
在 BitBucket 中,我有一个 POST 服务设置,希望远程触发我的 jenkins CI 服务器上的构建,但当我推送到我的 BitBucket 帐户时,它似乎不起作用。
我在托管 jenkins 的服务器上启用了 Windows 身份验证。
我尝试使用以下网址提供 POST 服务:
http://username:[email protected]/job/MyProject/build
此网址在我的浏览器中有效。我尝试了curl并收到了此错误:
curl: (47) Maximum (50) redirects followed
我猜测无论BitBucket发出请求,凭证都未正确发送。
IIS 日志:
x.x.x.x POST /job/MyProj/build - 80 - x.x.x.x Bitbucket.org 401 2 5 62
有什么想法或解决方法吗?
In BitBucket, I have a POST service setup with hopes to remotely trigger a build on my jenkins CI server but when I push to my BitBucket account, it appears to not work.
I have windows auth enabled on the server that hosts jenkins.
I tried supplying the POST service with this url:
http://username:[email protected]/job/MyProject/build
This url works in my browser. I tried curl and received this error:
curl: (47) Maximum (50) redirects followed
I'm guessing however BitBucket makes the request, the credentials are not sent correctly.
IIS Log:
x.x.x.x POST /job/MyProj/build - 80 - x.x.x.x Bitbucket.org 401 2 5 62
Any ideas or workarounds?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启用基本身份验证和 Windows 身份验证就可以了。我知道bitbucket是用Python编写的。也许 Python 和 Windows Auth 不能很好地协同工作?
Enabling both basic auth and windows auth did the trick. I know bitbucket is written in Python. Maybe Python and Windows Auth don't play well together?